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
The mocks feature of Apollo Server was just a simple invocation of a function from a particular old version of graphql-tools, and so in Apollo Server 4 we've removed that integration in favor of letting you use graphql-tools yourself directly (which also means you can upgrade yourself when bugs in it are fixed).
To have a strongly typed code, we are using a sort of "inline" subresolvers which allows us to defer resolution as necessary.
Example:
These subresolvers are little bit different as the first arg is not the
parent
butvariables
.It all works when
mocks
are disabled. Enabling the mocks will add theparent
arg and basically moves the variables into the second arg.Please see https://codesandbox.io/s/adoring-torvalds-nfdff?file=/index.js
When mocks are disabled, user's tags are filterable by variable, however, enabling mocks will broke it as
filter
value will be in the second argument.Looks like it is caused by ardatan/graphql-tools#1807
The text was updated successfully, but these errors were encountered: