Move relationship connection args to end

This commit is contained in:
Brian Beck 2016-12-12 00:02:58 -08:00
parent 8b8338b332
commit c2f7d9b836

View file

@ -144,14 +144,14 @@ export const relationship = {
type: RelationshipConnection, type: RelationshipConnection,
description: 'A list of relationships between these two entity types.', description: 'A list of relationships between these two entity types.',
args: { args: {
...connectionArgs,
direction: { direction: {
type: GraphQLString, type: GraphQLString,
description: 'Filter by the relationship direction.' description: 'Filter by the relationship direction.'
}, },
...fieldWithID('type', { ...fieldWithID('type', {
description: 'Filter by the relationship type.' description: 'Filter by the relationship type.'
}) }),
...connectionArgs
}, },
resolve: resolveRelationship resolve: resolveRelationship
} }