Code-First vs Implementation-First #8065
fschricker
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys!
First let me congratulate you guys on this fantastic product with a very good documentation, a lot of introduction articles and videos and also example code (graphql-workshop ftw!) available for us fellow programmers. 😊
Having said that, and being fairly new to HotChocolate / GraphQL in general I started creating a GraphQL endpoint using HotChocolate mostly based on what I learned from https://chillicream.com/docs/hotchocolate and that means I chose the "implementation-first" approach as it seems to be the default.
I now figured that code-first seems to be the better approach as it seems to provide the required flexibility and control over how the model is exposed.
So having struggled with "cannot infer schema from ValueTuple" for half a day I wonder whether some statement in the docs (early on?) to help (me) users better differentiate between implementation-first and code-first might be beneficial? Also are some pointers available on how to best mix implementation-first and code-first or is that even a good idea?
Some help / insight is greatly appreciated
regards, Florian
Beta Was this translation helpful? Give feedback.
All reactions