Skip to content

Commit cf70c7a

Browse files
authored
fix: respect @omit filter on constraints and foreign tables (#155)
1 parent 6223cdb commit cf70c7a

15 files changed

+2146
-4
lines changed

__tests__/integration/schema/__snapshots__/addConnectionFilterOperator.test.ts.snap

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,96 @@ input ChildFilter {
13431343
or: [ChildFilter!]
13441344
}
13451345
1346+
type ChildNoRelatedFilter implements Node {
1347+
\\"\\"\\"
1348+
Reads a single \`Filterable\` that is related to this \`ChildNoRelatedFilter\`.
1349+
\\"\\"\\"
1350+
filterableByFilterableId: Filterable
1351+
filterableId: Int
1352+
id: Int!
1353+
name: String!
1354+
1355+
\\"\\"\\"
1356+
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
1357+
\\"\\"\\"
1358+
nodeId: ID!
1359+
1360+
\\"\\"\\"
1361+
Reads a single \`Unfilterable\` that is related to this \`ChildNoRelatedFilter\`.
1362+
\\"\\"\\"
1363+
unfilterableByUnfilterableId: Unfilterable
1364+
unfilterableId: Int
1365+
}
1366+
1367+
\\"\\"\\"
1368+
A filter to be used against \`ChildNoRelatedFilter\` object types. All fields are combined with a logical ‘and.’
1369+
\\"\\"\\"
1370+
input ChildNoRelatedFilterFilter {
1371+
\\"\\"\\"Checks for all expressions in this list.\\"\\"\\"
1372+
and: [ChildNoRelatedFilterFilter!]
1373+
1374+
\\"\\"\\"Filter by the object’s \`filterableId\` field.\\"\\"\\"
1375+
filterableId: IntFilter
1376+
1377+
\\"\\"\\"Filter by the object’s \`id\` field.\\"\\"\\"
1378+
id: IntFilter
1379+
1380+
\\"\\"\\"Filter by the object’s \`name\` field.\\"\\"\\"
1381+
name: StringFilter
1382+
1383+
\\"\\"\\"Negates the expression.\\"\\"\\"
1384+
not: ChildNoRelatedFilterFilter
1385+
1386+
\\"\\"\\"Checks for any expressions in this list.\\"\\"\\"
1387+
or: [ChildNoRelatedFilterFilter!]
1388+
1389+
\\"\\"\\"Filter by the object’s \`unfilterableId\` field.\\"\\"\\"
1390+
unfilterableId: IntFilter
1391+
}
1392+
1393+
\\"\\"\\"A connection to a list of \`ChildNoRelatedFilter\` values.\\"\\"\\"
1394+
type ChildNoRelatedFiltersConnection {
1395+
\\"\\"\\"
1396+
A list of edges which contains the \`ChildNoRelatedFilter\` and cursor to aid in pagination.
1397+
\\"\\"\\"
1398+
edges: [ChildNoRelatedFiltersEdge!]!
1399+
1400+
\\"\\"\\"A list of \`ChildNoRelatedFilter\` objects.\\"\\"\\"
1401+
nodes: [ChildNoRelatedFilter]!
1402+
1403+
\\"\\"\\"Information to aid in pagination.\\"\\"\\"
1404+
pageInfo: PageInfo!
1405+
1406+
\\"\\"\\"
1407+
The count of *all* \`ChildNoRelatedFilter\` you could get from the connection.
1408+
\\"\\"\\"
1409+
totalCount: Int!
1410+
}
1411+
1412+
\\"\\"\\"A \`ChildNoRelatedFilter\` edge in the connection.\\"\\"\\"
1413+
type ChildNoRelatedFiltersEdge {
1414+
\\"\\"\\"A cursor for use in pagination.\\"\\"\\"
1415+
cursor: Cursor
1416+
1417+
\\"\\"\\"The \`ChildNoRelatedFilter\` at the end of the edge.\\"\\"\\"
1418+
node: ChildNoRelatedFilter
1419+
}
1420+
1421+
\\"\\"\\"Methods to use when ordering \`ChildNoRelatedFilter\`.\\"\\"\\"
1422+
enum ChildNoRelatedFiltersOrderBy {
1423+
FILTERABLE_ID_ASC
1424+
FILTERABLE_ID_DESC
1425+
ID_ASC
1426+
ID_DESC
1427+
NAME_ASC
1428+
NAME_DESC
1429+
NATURAL
1430+
PRIMARY_KEY_ASC
1431+
PRIMARY_KEY_DESC
1432+
UNFILTERABLE_ID_ASC
1433+
UNFILTERABLE_ID_DESC
1434+
}
1435+
13461436
\\"\\"\\"A connection to a list of \`Child\` values.\\"\\"\\"
13471437
type ChildrenConnection {
13481438
\\"\\"\\"
@@ -2246,6 +2336,35 @@ type Filterable implements Node {
22462336
bytea: String
22472337
char4: String
22482338
2339+
\\"\\"\\"Reads and enables pagination through a set of \`ChildNoRelatedFilter\`.\\"\\"\\"
2340+
childNoRelatedFiltersByFilterableId(
2341+
\\"\\"\\"Read all values in the set after (below) this cursor.\\"\\"\\"
2342+
after: Cursor
2343+
2344+
\\"\\"\\"Read all values in the set before (above) this cursor.\\"\\"\\"
2345+
before: Cursor
2346+
2347+
\\"\\"\\"
2348+
A filter to be used in determining which values should be returned by the collection.
2349+
\\"\\"\\"
2350+
filter: ChildNoRelatedFilterFilter
2351+
2352+
\\"\\"\\"Only read the first \`n\` values of the set.\\"\\"\\"
2353+
first: Int
2354+
2355+
\\"\\"\\"Only read the last \`n\` values of the set.\\"\\"\\"
2356+
last: Int
2357+
2358+
\\"\\"\\"
2359+
Skip the first \`n\` values from our \`after\` cursor, an alternative to cursor
2360+
based pagination. May not be used with \`last\`.
2361+
\\"\\"\\"
2362+
offset: Int
2363+
2364+
\\"\\"\\"The method to use when ordering \`ChildNoRelatedFilter\`.\\"\\"\\"
2365+
orderBy: [ChildNoRelatedFiltersOrderBy!] = [PRIMARY_KEY_ASC]
2366+
): ChildNoRelatedFiltersConnection!
2367+
22492368
\\"\\"\\"Reads and enables pagination through a set of \`Child\`.\\"\\"\\"
22502369
childrenByFilterableId(
22512370
\\"\\"\\"Read all values in the set after (below) this cursor.\\"\\"\\"
@@ -4597,6 +4716,35 @@ type Query implements Node {
45974716
orderBy: [BackwardsOrderBy!] = [PRIMARY_KEY_ASC]
45984717
): BackwardsConnection
45994718
4719+
\\"\\"\\"Reads and enables pagination through a set of \`ChildNoRelatedFilter\`.\\"\\"\\"
4720+
allChildNoRelatedFilters(
4721+
\\"\\"\\"Read all values in the set after (below) this cursor.\\"\\"\\"
4722+
after: Cursor
4723+
4724+
\\"\\"\\"Read all values in the set before (above) this cursor.\\"\\"\\"
4725+
before: Cursor
4726+
4727+
\\"\\"\\"
4728+
A filter to be used in determining which values should be returned by the collection.
4729+
\\"\\"\\"
4730+
filter: ChildNoRelatedFilterFilter
4731+
4732+
\\"\\"\\"Only read the first \`n\` values of the set.\\"\\"\\"
4733+
first: Int
4734+
4735+
\\"\\"\\"Only read the last \`n\` values of the set.\\"\\"\\"
4736+
last: Int
4737+
4738+
\\"\\"\\"
4739+
Skip the first \`n\` values from our \`after\` cursor, an alternative to cursor
4740+
based pagination. May not be used with \`last\`.
4741+
\\"\\"\\"
4742+
offset: Int
4743+
4744+
\\"\\"\\"The method to use when ordering \`ChildNoRelatedFilter\`.\\"\\"\\"
4745+
orderBy: [ChildNoRelatedFiltersOrderBy!] = [PRIMARY_KEY_ASC]
4746+
): ChildNoRelatedFiltersConnection
4747+
46004748
\\"\\"\\"Reads and enables pagination through a set of \`Child\`.\\"\\"\\"
46014749
allChildren(
46024750
\\"\\"\\"Read all values in the set after (below) this cursor.\\"\\"\\"
@@ -5082,6 +5230,15 @@ type Query implements Node {
50825230
): Child
50835231
childById(id: Int!): Child
50845232
5233+
\\"\\"\\"Reads a single \`ChildNoRelatedFilter\` using its globally unique \`ID\`.\\"\\"\\"
5234+
childNoRelatedFilter(
5235+
\\"\\"\\"
5236+
The globally unique \`ID\` to be used in selecting a single \`ChildNoRelatedFilter\`.
5237+
\\"\\"\\"
5238+
nodeId: ID!
5239+
): ChildNoRelatedFilter
5240+
childNoRelatedFilterById(id: Int!): ChildNoRelatedFilter
5241+
50855242
\\"\\"\\"Reads a single \`DomainType\` using its globally unique \`ID\`.\\"\\"\\"
50865243
domainType(
50875244
\\"\\"\\"
@@ -6063,6 +6220,34 @@ input TimeListFilter {
60636220
}
60646221
60656222
type Unfilterable implements Node {
6223+
\\"\\"\\"Reads and enables pagination through a set of \`ChildNoRelatedFilter\`.\\"\\"\\"
6224+
childNoRelatedFiltersByUnfilterableId(
6225+
\\"\\"\\"Read all values in the set after (below) this cursor.\\"\\"\\"
6226+
after: Cursor
6227+
6228+
\\"\\"\\"Read all values in the set before (above) this cursor.\\"\\"\\"
6229+
before: Cursor
6230+
6231+
\\"\\"\\"
6232+
A filter to be used in determining which values should be returned by the collection.
6233+
\\"\\"\\"
6234+
filter: ChildNoRelatedFilterFilter
6235+
6236+
\\"\\"\\"Only read the first \`n\` values of the set.\\"\\"\\"
6237+
first: Int
6238+
6239+
\\"\\"\\"Only read the last \`n\` values of the set.\\"\\"\\"
6240+
last: Int
6241+
6242+
\\"\\"\\"
6243+
Skip the first \`n\` values from our \`after\` cursor, an alternative to cursor
6244+
based pagination. May not be used with \`last\`.
6245+
\\"\\"\\"
6246+
offset: Int
6247+
6248+
\\"\\"\\"The method to use when ordering \`ChildNoRelatedFilter\`.\\"\\"\\"
6249+
orderBy: [ChildNoRelatedFiltersOrderBy!] = [PRIMARY_KEY_ASC]
6250+
): ChildNoRelatedFiltersConnection!
60666251
id: Int!
60676252
60686253
\\"\\"\\"

0 commit comments

Comments
 (0)