Skip to content

Commit 144e38d

Browse files
committed
Update commands and schema
1 parent 84d278a commit 144e38d

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

docs/docs/topics/schema.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,14 +1074,14 @@ Schema files can be loaded into Infrahub with the `infrahubctl` command or direc
10741074

10751075
The `infrahubctl` command can be used to check & load individual schema files or multiple files as part of a directory.
10761076

1077-
The `infrahub schema check` command will validate if a given schema is valid and it will return a summary of the changes
1077+
The `infrahubctl schema check` command will validate if a given schema is valid and it will return a summary of the changes
10781078
that will be applied to the schema if the schema was loaded.
10791079

10801080
```shell
10811081
infrahubctl schema check <path to schema file or a directory> <path to schema file or a directory> [--branch <branch_name>]
10821082
```
10831083

1084-
The `infrahub schema load` command will load the schemas into Infrahub into the specified branch.
1084+
The `infrahubctl schema load` command will load the schemas into Infrahub into the specified branch.
10851085

10861086
```shell
10871087
infrahubctl schema load <path to schema file or a directory> <path to schema file or a directory> [--branch <branch_name>]

schema/schema.graphql

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ type AvailableActions {
132132
edges: [ActionAvailabilityEdge!]!
133133
}
134134

135+
"""
136+
The `BigInt` scalar type represents non-fractional whole numeric values.
137+
`BigInt` is not constrained to 32-bit like the `Int` type and thus is a less
138+
compatible type.
139+
"""
140+
scalar BigInt
141+
135142
"""Branch"""
136143
type Branch {
137144
branched_from: String
@@ -6292,6 +6299,13 @@ input CoreWeightedPoolResourceUpdateInput {
62926299
subscriber_of_groups: [RelatedNodeInput]
62936300
}
62946301

6302+
"""
6303+
The `DateTime` scalar type represents a DateTime
6304+
value as specified by
6305+
[iso8601](https://en.wikipedia.org/wiki/ISO_8601).
6306+
"""
6307+
scalar DateTime
6308+
62956309
input DeleteInput {
62966310
hfid: [String]
62976311
id: String
@@ -6991,6 +7005,13 @@ input GenericPoolInput {
69917005
identifier: String
69927006
}
69937007

7008+
"""
7009+
The `GenericScalar` scalar type represents a generic
7010+
GraphQL scalar value that could be:
7011+
String, Boolean, Int, Float, List or Object.
7012+
"""
7013+
scalar GenericScalar
7014+
69947015
type GroupEvent implements EventNodeInterface {
69957016
"""The account ID that triggered the event."""
69967017
account_id: String
@@ -11092,4 +11113,10 @@ type ValidateRepositoryConnectivity {
1109211113

1109311114
type ValueType {
1109411115
value: String!
11095-
}
11116+
}
11117+
11118+
"""Expands a field to include Node defaults"""
11119+
directive @expand(
11120+
"""Exclude specific fields"""
11121+
exclude: [String]
11122+
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT

tasks/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def generate_graphqlschema(context: Context) -> None:
1616
"""Generate GraphQL schema into ./schema"""
1717
with context.cd(ESCAPED_REPO_PATH):
18-
context.run("poetry run infrahub schema export-graphql-schema --out schema/schema.graphql")
18+
context.run("poetry run infrahub dev export-graphql-schema --out schema/schema.graphql")
1919

2020

2121
@task

0 commit comments

Comments
 (0)