is it possible to have custom field on model and h...
# prisma-whats-new
j
is it possible to have custom field on model and have a resolver running on that field?
m
framework/Prisma?
j
I have a User model and have a place db somewhere which can be queried via resolver, now can I have a field in User model which can query that db? Is it possible to do without prism?
I came across this article: https://www.graph.cool/docs/concepts/functions-and-events/resolvers-mu3iar0eiz/ it talks about adding a custom field to model but there is no example so I am kind of confused.
m
I assume you are doing it with framework. As you mentioned the above
documentation
is what you’re looking for. The best examples I can recommend are the templates built by Graphcool to ease the on-boarding process. You can check them out here https://github.com/graphcool/templates
j
already went through that, didn't find anything related to the above mentioned article.
m
Ok, there is no direct reference to the article as all the examples are what the article is about. Can I help you in any other way, maybe with your particular example? 🙂