Last active
November 1, 2019 13:52
-
-
Save birk-astrup/5f7e4cb00c1b0a4b5d78992f3d316afa to your computer and use it in GitHub Desktop.
setting type definitions from graphql schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type_defs = load_schema_from_path('schema.graphql') | |
query = QueryType() | |
building = ObjectType('Building') | |
resident = ObjectType('Resident') | |
schema = make_executable_schema(type_defs, [building, resident, query]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment