MrHertal / react-admin-amplify

AWS Amplify data provider for react-admin.
MIT License
159 stars 42 forks source link

Owner-Auth-Strategy #57

Closed pafela closed 3 years ago

pafela commented 3 years ago

Hi,

when enabled owner auth in graphql schema I get problems with edit because the owner fields seems to be used as an input.

The error for example is: "The variables input contains a field name 'owner' that is not defined for input object type 'UpdateContactInput' "

Is there a way to ignore fields input fields like owner, createdAt, updatedAt?

I also wonder why null inputs are sent at create and edit.

pafela commented 3 years ago

ok, it's possible to work arround this problem.

just adding the "owner" field to the schema for each and every object where owner-strategy is used and its working as expected.