You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: implementations/sangria/README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,24 @@
2
2
3
3
Implementation of a federated subgraph based on the scala library [sangria](https://sangria-graphql.github.io/).
4
4
5
+
## Practical information
5
6
6
-
# Usage
7
+
There are several ways to define a GraphQL schema with sangria.
8
+
Here we are using a code first schema generation.
9
+
And we are splitting the domain model and the GraphQL schema. This ensures separation of concerns.
7
10
8
-
## Starting the GraphQL server
11
+
On the other hand, this approach needs more lines of code.
12
+
If your goal is to have less lines of code, you could mix the domain and the GraphQL and use the [automatic derivation](https://sangria-graphql.github.io/learn/#macro-based-graphql-type-derivation).
0 commit comments