diff --git a/examples/myproject/functions/echo.ts b/examples/myproject/functions/echo.ts index 581d7329d..a902bbe4f 100644 --- a/examples/myproject/functions/echo.ts +++ b/examples/myproject/functions/echo.ts @@ -7,6 +7,7 @@ export default (req: Request, res: Response) => { headers: req.headers, query: req.query, node: process.version, + arch: process.arch, }, ) } diff --git a/examples/myproject/nhost/metadata/databases/default/tables/storage_virus.yaml b/examples/myproject/nhost/metadata/databases/default/tables/storage_virus.yaml new file mode 100644 index 000000000..5c31429ce --- /dev/null +++ b/examples/myproject/nhost/metadata/databases/default/tables/storage_virus.yaml @@ -0,0 +1,42 @@ +table: + name: virus + schema: storage +configuration: + column_config: + created_at: + custom_name: createdAt + file_id: + custom_name: fileId + filename: + custom_name: filename + id: + custom_name: id + updated_at: + custom_name: updatedAt + user_session: + custom_name: userSession + virus: + custom_name: virus + custom_column_names: + created_at: createdAt + file_id: fileId + filename: filename + id: id + updated_at: updatedAt + user_session: userSession + virus: virus + custom_name: virus + custom_root_fields: + delete: deleteViruses + delete_by_pk: deleteVirus + insert: insertViruses + insert_one: insertVirus + select: viruses + select_aggregate: virusesAggregate + select_by_pk: virus + update: updateViruses + update_by_pk: updateVirus +object_relationships: + - name: file + using: + foreign_key_constraint_on: file_id diff --git a/examples/myproject/nhost/metadata/databases/default/tables/tables.yaml b/examples/myproject/nhost/metadata/databases/default/tables/tables.yaml index 3efa3103b..1b82e1169 100644 --- a/examples/myproject/nhost/metadata/databases/default/tables/tables.yaml +++ b/examples/myproject/nhost/metadata/databases/default/tables/tables.yaml @@ -10,3 +10,4 @@ - "!include public_animals.yaml" - "!include storage_buckets.yaml" - "!include storage_files.yaml" +- "!include storage_virus.yaml" diff --git a/examples/myproject/nhost/nhost.toml b/examples/myproject/nhost/nhost.toml index 94660ddf8..396045e54 100644 --- a/examples/myproject/nhost/nhost.toml +++ b/examples/myproject/nhost/nhost.toml @@ -8,7 +8,7 @@ name = 'GREET_TYPE' value = '{{ secrets.GREET_TYPE }}' [hasura] -version = 'v2.25.0-ce' +version = 'v2.33.4-ce' adminSecret = '{{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }}' webhookSecret = '{{ secrets.NHOST_WEBHOOK_SECRET }}' @@ -18,7 +18,7 @@ key = '{{ secrets.HASURA_GRAPHQL_JWT_SECRET }}' [hasura.settings] enableRemoteSchemaPermissions = false -corsDomain = ['https://zero.app.io', 'https://one.app.io', 'https://two.app.io'] +corsDomain = ['https://app.nhost.io', 'https://staging.apps.nhost.io', 'https://zero.app.io', 'https://one.app.io', 'https://two.app.io'] liveQueriesMultiplexedRefetchInterval = 3000 [functions] @@ -26,7 +26,7 @@ liveQueriesMultiplexedRefetchInterval = 3000 version = 16 [auth] -version = '0.20.1' +version = '0.21.2' [auth.redirections] clientUrl = 'http://localhost:3000'