You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relations of resources are not predictably made available, even when using the with and bypassCache operators.
Environment
js-data version: 3.0.8
node: 10.15.3
operating system: Catalina
Steps to reproduce
I've included a full example that can be run. The idea is that a user is on one team. Sometimes team information is attached to the serialized object received by the client, and sometimes it isn't. But if it is, it should be available.
Copy and run the server with the code below.
Invoke the client code function as it is, and you'll find that the team will be logged to the console successfully as expected. This is because the team was included in the user serializer
Uncomment out the first request, you'll find that the team is not logged on the first attempt (expected) since it was not on the vanilla serializer. The problem is that it is still not logged on the second request which is explicitly looking for it.
Description
Relations of resources are not predictably made available, even when using the
with
andbypassCache
operators.Environment
Steps to reproduce
I've included a full example that can be run. The idea is that a
user
is on oneteam
. Sometimes team information is attached to the serialized object received by the client, and sometimes it isn't. But if it is, it should be available.Client Code
Server Code
Download the attached server code, run
npm install
andnode index.js
from the rootdev-server.zip
(Contents shown below:)
The text was updated successfully, but these errors were encountered: