Skip to content

Commit 02aec42

Browse files
committed
Add test for all columns having @omit filter
1 parent 0c5d3f5 commit 02aec42

File tree

6 files changed

+1388
-0
lines changed

6 files changed

+1388
-0
lines changed

__tests__/integration/schema/__snapshots__/connectionFilter.test.js.snap

Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,41 @@ type CreateForwardPayload {
588588
query: Query
589589
}
590590
591+
\\"\\"\\"All input for the create \`FullyOmitted\` mutation.\\"\\"\\"
592+
input CreateFullyOmittedInput {
593+
\\"\\"\\"
594+
An arbitrary string value with no semantic meaning. Will be included in the
595+
payload verbatim. May be used to track mutations by the client.
596+
\\"\\"\\"
597+
clientMutationId: String
598+
599+
\\"\\"\\"The \`FullyOmitted\` to be created by this mutation.\\"\\"\\"
600+
fullyOmitted: FullyOmittedInput!
601+
}
602+
603+
\\"\\"\\"The output of our create \`FullyOmitted\` mutation.\\"\\"\\"
604+
type CreateFullyOmittedPayload {
605+
\\"\\"\\"
606+
The exact same \`clientMutationId\` that was provided in the mutation input,
607+
unchanged and unused. May be used by a client to track mutations.
608+
\\"\\"\\"
609+
clientMutationId: String
610+
611+
\\"\\"\\"The \`FullyOmitted\` that was created by this mutation.\\"\\"\\"
612+
fullyOmitted: FullyOmitted
613+
614+
\\"\\"\\"An edge for our \`FullyOmitted\`. May be used by Relay 1.\\"\\"\\"
615+
fullyOmittedEdge(
616+
\\"\\"\\"The method to use when ordering \`FullyOmitted\`.\\"\\"\\"
617+
orderBy: [FullyOmittedsOrderBy!] = [PRIMARY_KEY_ASC]
618+
): FullyOmittedsEdge
619+
620+
\\"\\"\\"
621+
Our root query field type. Allows us to run any query from our mutation payload.
622+
\\"\\"\\"
623+
query: Query
624+
}
625+
591626
\\"\\"\\"All input for the create \`Parent\` mutation.\\"\\"\\"
592627
input CreateParentInput {
593628
\\"\\"\\"
@@ -1012,6 +1047,54 @@ type DeleteForwardPayload {
10121047
query: Query
10131048
}
10141049
1050+
\\"\\"\\"All input for the \`deleteFullyOmittedById\` mutation.\\"\\"\\"
1051+
input DeleteFullyOmittedByIdInput {
1052+
\\"\\"\\"
1053+
An arbitrary string value with no semantic meaning. Will be included in the
1054+
payload verbatim. May be used to track mutations by the client.
1055+
\\"\\"\\"
1056+
clientMutationId: String
1057+
id: Int!
1058+
}
1059+
1060+
\\"\\"\\"All input for the \`deleteFullyOmitted\` mutation.\\"\\"\\"
1061+
input DeleteFullyOmittedInput {
1062+
\\"\\"\\"
1063+
An arbitrary string value with no semantic meaning. Will be included in the
1064+
payload verbatim. May be used to track mutations by the client.
1065+
\\"\\"\\"
1066+
clientMutationId: String
1067+
1068+
\\"\\"\\"
1069+
The globally unique \`ID\` which will identify a single \`FullyOmitted\` to be deleted.
1070+
\\"\\"\\"
1071+
nodeId: ID!
1072+
}
1073+
1074+
\\"\\"\\"The output of our delete \`FullyOmitted\` mutation.\\"\\"\\"
1075+
type DeleteFullyOmittedPayload {
1076+
\\"\\"\\"
1077+
The exact same \`clientMutationId\` that was provided in the mutation input,
1078+
unchanged and unused. May be used by a client to track mutations.
1079+
\\"\\"\\"
1080+
clientMutationId: String
1081+
deletedFullyOmittedId: ID
1082+
1083+
\\"\\"\\"The \`FullyOmitted\` that was deleted by this mutation.\\"\\"\\"
1084+
fullyOmitted: FullyOmitted
1085+
1086+
\\"\\"\\"An edge for our \`FullyOmitted\`. May be used by Relay 1.\\"\\"\\"
1087+
fullyOmittedEdge(
1088+
\\"\\"\\"The method to use when ordering \`FullyOmitted\`.\\"\\"\\"
1089+
orderBy: [FullyOmittedsOrderBy!] = [PRIMARY_KEY_ASC]
1090+
): FullyOmittedsEdge
1091+
1092+
\\"\\"\\"
1093+
Our root query field type. Allows us to run any query from our mutation payload.
1094+
\\"\\"\\"
1095+
query: Query
1096+
}
1097+
10151098
\\"\\"\\"All input for the \`deleteParentById\` mutation.\\"\\"\\"
10161099
input DeleteParentByIdInput {
10171100
\\"\\"\\"
@@ -1714,6 +1797,67 @@ enum ForwardsOrderBy {
17141797
PRIMARY_KEY_DESC
17151798
}
17161799
1800+
type FullyOmitted implements Node {
1801+
id: Int!
1802+
1803+
\\"\\"\\"
1804+
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
1805+
\\"\\"\\"
1806+
nodeId: ID!
1807+
string: String
1808+
}
1809+
1810+
\\"\\"\\"An input for mutations affecting \`FullyOmitted\`\\"\\"\\"
1811+
input FullyOmittedInput {
1812+
id: Int
1813+
string: String
1814+
}
1815+
1816+
\\"\\"\\"
1817+
Represents an update to a \`FullyOmitted\`. Fields that are set will be updated.
1818+
\\"\\"\\"
1819+
input FullyOmittedPatch {
1820+
id: Int
1821+
string: String
1822+
}
1823+
1824+
\\"\\"\\"A connection to a list of \`FullyOmitted\` values.\\"\\"\\"
1825+
type FullyOmittedsConnection {
1826+
\\"\\"\\"
1827+
A list of edges which contains the \`FullyOmitted\` and cursor to aid in pagination.
1828+
\\"\\"\\"
1829+
edges: [FullyOmittedsEdge!]!
1830+
1831+
\\"\\"\\"A list of \`FullyOmitted\` objects.\\"\\"\\"
1832+
nodes: [FullyOmitted]!
1833+
1834+
\\"\\"\\"Information to aid in pagination.\\"\\"\\"
1835+
pageInfo: PageInfo!
1836+
1837+
\\"\\"\\"The count of *all* \`FullyOmitted\` you could get from the connection.\\"\\"\\"
1838+
totalCount: Int
1839+
}
1840+
1841+
\\"\\"\\"A \`FullyOmitted\` edge in the connection.\\"\\"\\"
1842+
type FullyOmittedsEdge {
1843+
\\"\\"\\"A cursor for use in pagination.\\"\\"\\"
1844+
cursor: Cursor
1845+
1846+
\\"\\"\\"The \`FullyOmitted\` at the end of the edge.\\"\\"\\"
1847+
node: FullyOmitted
1848+
}
1849+
1850+
\\"\\"\\"Methods to use when ordering \`FullyOmitted\`.\\"\\"\\"
1851+
enum FullyOmittedsOrderBy {
1852+
ID_ASC
1853+
ID_DESC
1854+
NATURAL
1855+
PRIMARY_KEY_ASC
1856+
PRIMARY_KEY_DESC
1857+
STRING_ASC
1858+
STRING_DESC
1859+
}
1860+
17171861
\\"\\"\\"An IPv4 or IPv6 host address, and optionally its subnet.\\"\\"\\"
17181862
scalar InternetAddress
17191863
@@ -1987,6 +2131,14 @@ type Mutation {
19872131
input: CreateForwardCompoundInput!
19882132
): CreateForwardCompoundPayload
19892133
2134+
\\"\\"\\"Creates a single \`FullyOmitted\`.\\"\\"\\"
2135+
createFullyOmitted(
2136+
\\"\\"\\"
2137+
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
2138+
\\"\\"\\"
2139+
input: CreateFullyOmittedInput!
2140+
): CreateFullyOmittedPayload
2141+
19902142
\\"\\"\\"Creates a single \`Parent\`.\\"\\"\\"
19912143
createParent(
19922144
\\"\\"\\"
@@ -2123,6 +2275,22 @@ type Mutation {
21232275
input: DeleteForwardCompoundByForwardCompound1AndForwardCompound2Input!
21242276
): DeleteForwardCompoundPayload
21252277
2278+
\\"\\"\\"Deletes a single \`FullyOmitted\` using its globally unique id.\\"\\"\\"
2279+
deleteFullyOmitted(
2280+
\\"\\"\\"
2281+
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
2282+
\\"\\"\\"
2283+
input: DeleteFullyOmittedInput!
2284+
): DeleteFullyOmittedPayload
2285+
2286+
\\"\\"\\"Deletes a single \`FullyOmitted\` using a unique key.\\"\\"\\"
2287+
deleteFullyOmittedById(
2288+
\\"\\"\\"
2289+
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
2290+
\\"\\"\\"
2291+
input: DeleteFullyOmittedByIdInput!
2292+
): DeleteFullyOmittedPayload
2293+
21262294
\\"\\"\\"Deletes a single \`Parent\` using its globally unique id.\\"\\"\\"
21272295
deleteParent(
21282296
\\"\\"\\"
@@ -2281,6 +2449,24 @@ type Mutation {
22812449
input: UpdateForwardCompoundByForwardCompound1AndForwardCompound2Input!
22822450
): UpdateForwardCompoundPayload
22832451
2452+
\\"\\"\\"
2453+
Updates a single \`FullyOmitted\` using its globally unique id and a patch.
2454+
\\"\\"\\"
2455+
updateFullyOmitted(
2456+
\\"\\"\\"
2457+
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
2458+
\\"\\"\\"
2459+
input: UpdateFullyOmittedInput!
2460+
): UpdateFullyOmittedPayload
2461+
2462+
\\"\\"\\"Updates a single \`FullyOmitted\` using a unique key and a patch.\\"\\"\\"
2463+
updateFullyOmittedById(
2464+
\\"\\"\\"
2465+
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
2466+
\\"\\"\\"
2467+
input: UpdateFullyOmittedByIdInput!
2468+
): UpdateFullyOmittedPayload
2469+
22842470
\\"\\"\\"Updates a single \`Parent\` using its globally unique id and a patch.\\"\\"\\"
22852471
updateParent(
22862472
\\"\\"\\"
@@ -2624,6 +2810,30 @@ type Query implements Node {
26242810
orderBy: [ForwardsOrderBy!] = [PRIMARY_KEY_ASC]
26252811
): ForwardsConnection
26262812
2813+
\\"\\"\\"Reads and enables pagination through a set of \`FullyOmitted\`.\\"\\"\\"
2814+
allFullyOmitteds(
2815+
\\"\\"\\"Read all values in the set after (below) this cursor.\\"\\"\\"
2816+
after: Cursor
2817+
2818+
\\"\\"\\"Read all values in the set before (above) this cursor.\\"\\"\\"
2819+
before: Cursor
2820+
2821+
\\"\\"\\"Only read the first \`n\` values of the set.\\"\\"\\"
2822+
first: Int
2823+
2824+
\\"\\"\\"Only read the last \`n\` values of the set.\\"\\"\\"
2825+
last: Int
2826+
2827+
\\"\\"\\"
2828+
Skip the first \`n\` values from our \`after\` cursor, an alternative to cursor
2829+
based pagination. May not be used with \`last\`.
2830+
\\"\\"\\"
2831+
offset: Int
2832+
2833+
\\"\\"\\"The method to use when ordering \`FullyOmitted\`.\\"\\"\\"
2834+
orderBy: [FullyOmittedsOrderBy!] = [PRIMARY_KEY_ASC]
2835+
): FullyOmittedsConnection
2836+
26272837
\\"\\"\\"Reads and enables pagination through a set of \`Parent\`.\\"\\"\\"
26282838
allParents(
26292839
\\"\\"\\"Read all values in the set after (below) this cursor.\\"\\"\\"
@@ -2728,6 +2938,15 @@ type Query implements Node {
27282938
): ForwardCompound
27292939
forwardCompoundByForwardCompound1AndForwardCompound2(forwardCompound1: Int!, forwardCompound2: Int!): ForwardCompound
27302940
2941+
\\"\\"\\"Reads a single \`FullyOmitted\` using its globally unique \`ID\`.\\"\\"\\"
2942+
fullyOmitted(
2943+
\\"\\"\\"
2944+
The globally unique \`ID\` to be used in selecting a single \`FullyOmitted\`.
2945+
\\"\\"\\"
2946+
nodeId: ID!
2947+
): FullyOmitted
2948+
fullyOmittedById(id: Int!): FullyOmitted
2949+
27312950
\\"\\"\\"Fetches an object given its globally unique \`ID\`.\\"\\"\\"
27322951
node(
27332952
\\"\\"\\"The globally unique \`ID\`.\\"\\"\\"
@@ -3357,6 +3576,63 @@ type UpdateForwardPayload {
33573576
query: Query
33583577
}
33593578
3579+
\\"\\"\\"All input for the \`updateFullyOmittedById\` mutation.\\"\\"\\"
3580+
input UpdateFullyOmittedByIdInput {
3581+
\\"\\"\\"
3582+
An arbitrary string value with no semantic meaning. Will be included in the
3583+
payload verbatim. May be used to track mutations by the client.
3584+
\\"\\"\\"
3585+
clientMutationId: String
3586+
3587+
\\"\\"\\"
3588+
An object where the defined keys will be set on the \`FullyOmitted\` being updated.
3589+
\\"\\"\\"
3590+
fullyOmittedPatch: FullyOmittedPatch!
3591+
id: Int!
3592+
}
3593+
3594+
\\"\\"\\"All input for the \`updateFullyOmitted\` mutation.\\"\\"\\"
3595+
input UpdateFullyOmittedInput {
3596+
\\"\\"\\"
3597+
An arbitrary string value with no semantic meaning. Will be included in the
3598+
payload verbatim. May be used to track mutations by the client.
3599+
\\"\\"\\"
3600+
clientMutationId: String
3601+
3602+
\\"\\"\\"
3603+
An object where the defined keys will be set on the \`FullyOmitted\` being updated.
3604+
\\"\\"\\"
3605+
fullyOmittedPatch: FullyOmittedPatch!
3606+
3607+
\\"\\"\\"
3608+
The globally unique \`ID\` which will identify a single \`FullyOmitted\` to be updated.
3609+
\\"\\"\\"
3610+
nodeId: ID!
3611+
}
3612+
3613+
\\"\\"\\"The output of our update \`FullyOmitted\` mutation.\\"\\"\\"
3614+
type UpdateFullyOmittedPayload {
3615+
\\"\\"\\"
3616+
The exact same \`clientMutationId\` that was provided in the mutation input,
3617+
unchanged and unused. May be used by a client to track mutations.
3618+
\\"\\"\\"
3619+
clientMutationId: String
3620+
3621+
\\"\\"\\"The \`FullyOmitted\` that was updated by this mutation.\\"\\"\\"
3622+
fullyOmitted: FullyOmitted
3623+
3624+
\\"\\"\\"An edge for our \`FullyOmitted\`. May be used by Relay 1.\\"\\"\\"
3625+
fullyOmittedEdge(
3626+
\\"\\"\\"The method to use when ordering \`FullyOmitted\`.\\"\\"\\"
3627+
orderBy: [FullyOmittedsOrderBy!] = [PRIMARY_KEY_ASC]
3628+
): FullyOmittedsEdge
3629+
3630+
\\"\\"\\"
3631+
Our root query field type. Allows us to run any query from our mutation payload.
3632+
\\"\\"\\"
3633+
query: Query
3634+
}
3635+
33603636
\\"\\"\\"All input for the \`updateParentById\` mutation.\\"\\"\\"
33613637
input UpdateParentByIdInput {
33623638
\\"\\"\\"

0 commit comments

Comments
 (0)