Skip to content

Commit

Permalink
modifiedg add rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mhhnr committed Aug 26, 2024
1 parent 041b702 commit 963595d
Show file tree
Hide file tree
Showing 18 changed files with 450 additions and 246 deletions.
147 changes: 1 addition & 146 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,75 +86,6 @@
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"files.exclude": {
".DS_Store": true,
".changeset": true,
".dockerignore": true,
".editorconfig": true,
".env": true,
".env.example": true,
".env.prod": true,
".env.prod.example": true,
".git": true,
".gitattributes": true,
".github": true,
".gitignore": true,
".markdownlintignore": true,
".markuplintrc.cjs": true,
".nhost": true,
".npmrc": true,
".secrets": true,
".secrets.example": true,
".secrets.prod": true,
".secrets.prod.example": true,
".textlintignore": true,
".turbo": true,
".vercelignore": true,
".vscode": true,
"CHANGELOG.md": true,
"CODE_OF_CONDUCT.md": true,
"CONTRIBUTING.md": true,
"DEVELOPERS.md": true,
"Dockerfile": true,
"LICENSE": true,
"Makefile": true,
"README.md": true,
"biome.jsonc": true,
"bun.Dockerfile": true,
"bun.lockb": true,
"cog.toml": true,
"compose.override.yml": true,
"compose.yml": true,
"config": true,
"config.yaml": true,
"degit.json": true,
"docs": true,
"flake.nix": true,
"functions": true,
"infra": true,
"nhost": true,
"node_modules": true,
"package.json": true,
"packages": true,
"patches": true,
"pnpm-lock.yaml": true,
"pnpm-workspace.yaml": true,
"scripts": true,
"turbo.json": true,
"vercel.json": true,
"vitest.config.ts": true,
"vitest.workspaces.ts": true,
"apps/console-fb": true,
"apps/console-sc": true,
"apps/docs": true,
"apps/playground": true,
"apps/web": true,
"packages/assets": true,
"packages/biome-config": true,
"packages/role-houdini": true,
"packages/skeleton-ui": true,
"packages/typescript-config": true,
"packages/ui": true,
"packages/utils": true,
"**/.git": true,
"**/.DS_Store": true,
".idea": true,
Expand Down Expand Up @@ -387,81 +318,5 @@
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"redhat.telemetry.enabled": false,
"monorepoFocusWorkspace.internal": {
"spectacular": {
"managedFilesIgnoreEntries": [
".DS_Store",
".changeset",
".dockerignore",
".editorconfig",
".env",
".env.example",
".env.prod",
".env.prod.example",
".git",
".gitattributes",
".github",
".gitignore",
".markdownlintignore",
".markuplintrc.cjs",
".nhost",
".npmrc",
".secrets",
".secrets.example",
".secrets.prod",
".secrets.prod.example",
".textlintignore",
".turbo",
".vercelignore",
".vscode",
"CHANGELOG.md",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"DEVELOPERS.md",
"Dockerfile",
"LICENSE",
"Makefile",
"README.md",
"biome.jsonc",
"bun.Dockerfile",
"bun.lockb",
"cog.toml",
"compose.override.yml",
"compose.yml",
"config",
"config.yaml",
"degit.json",
"docs",
"flake.nix",
"functions",
"infra",
"nhost",
"node_modules",
"package.json",
"packages",
"patches",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"scripts",
"turbo.json",
"vercel.json",
"vitest.config.ts",
"vitest.workspaces.ts",
"apps/console-fb",
"apps/console-sc",
"apps/docs",
"apps/playground",
"apps/web",
"packages/assets",
"packages/biome-config",
"packages/role-houdini",
"packages/skeleton-ui",
"packages/typescript-config",
"packages/ui",
"packages/utils"
],
"focusedWorkspace": "console"
}
}
"redhat.telemetry.enabled": false
}
125 changes: 125 additions & 0 deletions apps/console-fb/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3829,6 +3829,29 @@ type query_root {
"""fetch data from the table: "subject_type" using primary key columns"""
subject_type_by_pk(value: String!): subject_type

"""
fetch data from the table: "test_rule"
"""
test_rule(
"""distinct select on columns"""
distinct_on: [test_rule_select_column!]

"""limit the number of rows returned"""
limit: Int

"""skip the first n rows. Use only with order_by"""
offset: Int

"""sort the rows by one or more columns"""
order_by: [test_rule_order_by!]

"""filter the rows returned"""
where: test_rule_bool_exp
): [test_rule!]!

"""fetch data from the table: "test_rule" using primary key columns"""
test_rule_by_pk(a: uuid!): test_rule

"""fetch data from the table: "auth.users" using primary key columns"""
user(id: uuid!): users

Expand Down Expand Up @@ -5072,6 +5095,43 @@ type subscription_root {
where: subject_type_bool_exp
): [subject_type!]!

"""
fetch data from the table: "test_rule"
"""
test_rule(
"""distinct select on columns"""
distinct_on: [test_rule_select_column!]

"""limit the number of rows returned"""
limit: Int

"""skip the first n rows. Use only with order_by"""
offset: Int

"""sort the rows by one or more columns"""
order_by: [test_rule_order_by!]

"""filter the rows returned"""
where: test_rule_bool_exp
): [test_rule!]!

"""fetch data from the table: "test_rule" using primary key columns"""
test_rule_by_pk(a: uuid!): test_rule

"""
fetch data from the table in a streaming manner: "test_rule"
"""
test_rule_stream(
"""maximum number of rows returned in a single batch"""
batch_size: Int!

"""cursor to stream the results returned by the query"""
cursor: [test_rule_stream_cursor_input]!

"""filter the rows returned"""
where: test_rule_bool_exp
): [test_rule!]!

"""fetch data from the table: "auth.users" using primary key columns"""
user(id: uuid!): users

Expand Down Expand Up @@ -5204,6 +5264,71 @@ type subscription_root {
): [users!]!
}

"""created by nithin, just for testing"""
type test_rule {
a: uuid!
b: timestamptz!
c: Boolean!
d: Int!
}

"""
Boolean expression to filter rows from the table "test_rule". All fields are combined with a logical 'AND'.
"""
input test_rule_bool_exp {
_and: [test_rule_bool_exp!]
_not: test_rule_bool_exp
_or: [test_rule_bool_exp!]
a: uuid_comparison_exp
b: timestamptz_comparison_exp
c: Boolean_comparison_exp
d: Int_comparison_exp
}

"""Ordering options when selecting data from "test_rule"."""
input test_rule_order_by {
a: order_by
b: order_by
c: order_by
d: order_by
}

"""
select columns of table "test_rule"
"""
enum test_rule_select_column {
"""column name"""
a

"""column name"""
b

"""column name"""
c

"""column name"""
d
}

"""
Streaming cursor of the table "test_rule"
"""
input test_rule_stream_cursor_input {
"""Stream column input with initial value"""
initial_value: test_rule_stream_cursor_value_input!

"""cursor ordering"""
ordering: cursor_ordering
}

"""Initial value of the column from where the streaming should start"""
input test_rule_stream_cursor_value_input {
a: uuid
b: timestamptz
c: Boolean
d: Int
}

scalar timestamp

"""
Expand Down
Loading

0 comments on commit 963595d

Please sign in to comment.