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
Describe the bug
When I run a query in react-native I get the following:
TypeError: In this environment the sources for assign MUST be an object. This error is a performance optimization and not spec compliant.
at Object.assign
the problem is in type-graphql/src/resolvers/validate-arg.ts:
To Reproduce
A quick guide how to reproduce the bug.
You can paste here code snippets or even better, provide a link to the repository with minimal reproducible code example.
Run under react-native. The relevant code is in the polyfill for object.assign in Object.es6.js:
for(varnextIndex=1;nextIndex<arguments.length;nextIndex++){varnextSource=arguments[nextIndex];if(nextSource==null){continue;}if(__DEV__){if(typeofnextSource!=='object'&&typeofnextSource!=='function'){thrownewTypeError('In this environment the sources for assign MUST be an object. '+'This error is a performance optimization and not spec compliant.');}}`
Expected behavior
no error
Logs
If applicable, add some console logs to help explain your problem.
You can paste the errors with stack trace that were printed when the error occured.
Enviorment (please complete the following information):
OS: android
Node 8.11.2
Package version: 0.12.2
TypeScript version 2.9.2
Additional context
The text was updated successfully, but these errors were encountered:
I find graphql to be a good way to access the local database inside my mobile app. React doesn’t really have any good way to handle async data fetches- it’s all redux saga or redux-thunk, and all I want to do is fetch some data that is local state for a component and not make things complicated.
Describe the bug
When I run a query in react-native I get the following:
the problem is in
type-graphql/src/resolvers/validate-arg.ts
:in this case
globalValidate
is true andargValidate
is undefinedI think it's reasonable to request that Object.assign not be called with boolean arguments. Perhaps:
To Reproduce
A quick guide how to reproduce the bug.
You can paste here code snippets or even better, provide a link to the repository with minimal reproducible code example.
Run under react-native. The relevant code is in the polyfill for object.assign in Object.es6.js:
Expected behavior
no error
Logs
If applicable, add some console logs to help explain your problem.
You can paste the errors with stack trace that were printed when the error occured.
Enviorment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: