loopback-graphql icon indicating copy to clipboard operation
loopback-graphql copied to clipboard

[ Question ] remoteMethod of type GET added as mutation?

Open mariodan opened this issue 8 years ago • 2 comments

Hi,

I was wondering if there is way of making a custom remoteMethod (for example: User.getCurrentUser) of type 'GET' to be available as a 'QUERY' instead of as a 'MUTATION'. After some research and debug If I declare my remoteMethod with accessType: 'READ' it dissapears alltogether from both Query and Mutation.

Thanks

mariodan avatar Aug 09 '17 09:08 mariodan

Good idea. Will try to get to update it.

Tallyb avatar Aug 18 '17 20:08 Tallyb

+++++

mikollaay avatar Oct 09 '17 19:10 mikollaay