Support checked keyed relationships across portable operations and queries
This commit is contained in:
+5
-1
@@ -242,7 +242,11 @@ export function querySchema(
|
||||
first: { type: GraphQLInt },
|
||||
all: { type: GraphQLInt },
|
||||
after: { type: cursorScalar },
|
||||
where: { type: filter(targetId) },
|
||||
where: {
|
||||
type: member.keyType
|
||||
? relational.where(objectRow(targetId, { keyType: member.keyType }))
|
||||
: filter(targetId),
|
||||
},
|
||||
...(ordering ? { orderBy: { type: new GraphQLList(new GraphQLNonNull(ordering)) } } : {}),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user