Rest API 2.0?
Common problems:
What if someone doesn't give a shit?
Which HTTP verb will you use for create request over web sockets? XD
When you need a little more or a little less.
Standard for application-level query language invented by Facebook.
Schema notation:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: |
|
Directives:
Ability to retrieve an information about your schema by using GraphQL itself.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: |
|
(Excelent for tooling)
F# implementation of GraphQL standard for client and server.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
|
Good |
Bad |
---|---|
What approaches did we use to address problems we've met?
Uniform API to work with both sync/async computations:
1: 2: 3: 4: 5: 6: 7: |
|
Fast, low overhead in synchronous cases:
Know what's going to be executed before executing it.
Know what's going to be accessed before accessing it.
Execution plan infers usage of objects and fields defined GraphQL schema
Property tracker infers usage of .NET objects and properties directly from the code before it executes
(Keep track of improvements on github)
References: