relay-tools / react-relay-network-layer

ReactRelayNetworkLayer with middlewares and query batching for Relay Classic.
MIT License
277 stars 47 forks source link

__dataID__ unknown field #43

Closed atteia closed 7 years ago

atteia commented 7 years ago

Hello

I'm using react-relay-network-layer and your relayStore with relay on web and when I post a mutation I got this error

message : "Variable "$input_0" got invalid value {"record":{"username":"admin","fullname":"ahmedAtia","phone":{"__dataID__":"client:-6654687382","phone":"055777098","kind":null,"localext":"123"},"address":{"__dataID__":"client:-6654687383","country":"SA","region":"SA","city":"Riyadh","street":"SA","knownmark":"sa"},"gender":"male"},"filter":{"_id":"58cfafd37b094855997ea271"},"clientMutationId":"0"}. In field "record": In field "phone": In field "__dataID__": Unknown field. In field "record": In field "address": In field "__dataID__": Unknown field."

I did not use the batch for Relay because I have another error with it .

Could you help me to solve my error plz ?

nodkz commented 7 years ago

Just remove dataID from objects which u pass to mutation. This is GraphQL validation error and it says that this field is not allowed in schema.

Can not provide more info, cause on vacation and only with mobile phone.

nodkz commented 7 years ago

Nothing related to react-relay-network-layer.

Closing.