Join Slack
Powered by
Is there any library that will take an object and ...
# orm-help
f
faure
07/26/2019, 12:33 PM
Is there any library that will take an object and attach methods according to its
__typename
?
e
Errorname
07/26/2019, 12:37 PM
What type of methods ? CRUD and stuff ?
h
Harshit
07/26/2019, 2:48 PM
Yes, same question. If you want a autogenerated GraphQL API, you can look into nexus prisma:
https://github.com/prisma/nexus-prisma
If you want to generate typescript typings you can look into GraphQL code generator:
https://github.com/dotansimha/graphql-code-generator
f
faure
07/30/2019, 10:23 PM
I was looking for something like selectors on the client side
faure
07/30/2019, 10:24 PM
but then I realised it was better to keep it functional and not have objects
Open in Slack
Previous
Next