Closed jasonlaw closed 3 years ago
you can have them "both". Try the following, uncomment Accounts property, and add attribute [GraphQLIgnore]. As a result, in REST you have both, but GetAccounts is just an empty method, does not break anything. In GraphQL you have only getAccounts field.
This is really great, thank you very much! :)
Hi @rivantsov ,
Do you think it is a bad idea to share the data object between GraphQL and REST?
There is an issue when I trying to do so, in my data objects below, I would like the Company's account quarriable with an argument, but there is no way to do with simply attribute.
Appreciate your advice.
Thank you.