Is there any library that will take an object and ...
# orm-help
f
Is there any library that will take an object and attach methods according to its
__typename
?
e
What type of methods ? CRUD and stuff ?
h
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
I was looking for something like selectors on the client side
but then I realised it was better to keep it functional and not have objects