Skip to content

Instantly share code, notes, and snippets.

@catalinpit
Created August 31, 2022 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catalinpit/8aa5d57b81a4c2d4f7b2340d407cb8f5 to your computer and use it in GitHub Desktop.
Save catalinpit/8aa5d57b81a4c2d4f7b2340d407cb8f5 to your computer and use it in GitHub Desktop.
{
"resource_version": 8,
"metadata": {
"version": 3,
"sources": [
{
"name": "default",
"kind": "postgres",
"tables": [
{
"table": {
"name": "note",
"schema": "public"
},
"object_relationships": [
{
"name": "author",
"using": {
"manual_configuration": {
"column_mapping": {
"author_id": "id"
},
"insertion_order": null,
"remote_table": {
"name": "user",
"schema": "public"
}
}
}
}
],
"select_permissions": [
{
"role": "guest",
"permission": {
"columns": [
"author_id",
"content",
"title",
"id"
],
"filter": {},
"query_root_fields": ["select_by_pk"],
"subscription_root_fields": ["select_by_pk"]
}
}
]
},
{
"table": {
"name": "user",
"schema": "public"
},
"array_relationships": [
{
"name": "notes",
"using": {
"manual_configuration": {
"column_mapping": {
"id": "author_id"
},
"insertion_order": null,
"remote_table": {
"name": "note",
"schema": "public"
}
}
}
}
],
"select_permissions": [
{
"role": "guest",
"permission": {
"columns": [
"id",
"name"
],
"filter": {},
"query_root_fields": [],
"subscription_root_fields": []
}
}
]
}
],
"configuration": {
"connection_info": {
"database_url": {
"from_env": "PG_DATABASE_URL"
},
"isolation_level": "read-committed",
"use_prepared_statements": false
},
"extensions_schema": "heroku_ext"
},
"customization": {
"naming_convention": "hasura-default"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment