Hello, I have 3 questions regarding prisma2 and it...
# orm-help
m
Hello, I have 3 questions regarding prisma2 and it’s GraphQL capabilities: 1. Will I be able to interact with my database using GraphQL? 2. Will Prisma2 autogenerate GraphQL schema for my datamodel? 3. Will I be able to build my GraphQL APIs similarly to what I did using prisma-binding (using info object/selection set)? E.g.:
Copy code
const query = {  
  games: async (_parent, args, context, info) => {
    return context.db.query.games(args, info);
  }
}
👍 1
n
Hey @matus.congrady 👋 we've tried to answer these questions in this FAQ: https://github.com/prisma/prisma2/blob/master/docs/faq.md#does-photon-support-graphql-schema-delegation-and-graphql-binding would you mind taking a look and see whether that helps. If that's not the info you're looking for, please let me know so I can improve the FAQs 🙂
👍 1
m
Thanks, that’s exactly what I wanted to know, even tho I like schema-first approach more than code-first