DEV Community

Ali Bayat
Ali Bayat

Posted on

Answer: Annotation-Based vs Code-First in Hot Chocolate

Annotation-Based or Pure Code-First: In this approach, we don't bother about GraphQL schema types, we will just write clean C# code that automatically translates to GraphQL types.

Code-first: In this approach, we use Schema types, Schema types allow us to keep the GraphQL type configuration separate from…

Top comments (0)