Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: example: added architecture #776

Merged
merged 5 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/myproject/functions/echo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default (req: Request, res: Response) => {
headers: req.headers,
query: req.query,
node: process.version,
arch: process.arch,
},
)
}
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
- "!include public_animals.yaml"
- "!include storage_buckets.yaml"
- "!include storage_files.yaml"
- "!include storage_virus.yaml"
6 changes: 3 additions & 3 deletions examples/myproject/nhost/nhost.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'

Expand All @@ -18,15 +18,15 @@ 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]
[functions.node]
version = 16

[auth]
version = '0.20.1'
version = '0.21.2'

[auth.redirections]
clientUrl = 'http://localhost:3000'
Expand Down
Loading