react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

The GraphQL schema ra-graphql-data-simple expects and the one that json-graphql-server generates are different. The README says otherwhise.

Open andion opened this issue 5 years ago • 4 comments

What you were expecting:

I was expecting that ra-graphql-data-simple would accept the GraphQL schema generated by marmelab/json-graphql-server as is stated in the README

What happened instead:

The schema ra-graphql-data-simple expects and the schema that json-graphql-server generates are different.

The problem seems to be the "remove/delete" operation:

  • react-admin expects: deletePost(id: ID!): Post
  • json-graphql-server generates: removePost(id: ID!): Boolean

Related code:

Other information:

This issue seems related : https://github.com/marmelab/react-admin/issues/2663

Environment

  • react-admin version: 3.2.0
  • json-graphql-server version: 2.1.3

andion avatar Feb 19 '20 12:02 andion