Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #371 from michaeldgraham/master
Browse files Browse the repository at this point in the history
Fixing augmentation testing with related issues #369 & #370
  • Loading branch information
johnymontana authored Jan 5, 2020
2 parents 0297649 + ff9a341 commit dff73a9
Show file tree
Hide file tree
Showing 4 changed files with 312 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/augment/input-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const augmentInputTypePropertyFields = ({
);
}
}
if (orderingType) {
if (orderingType && outputType !== SpatialType.POINT) {
orderingType.values.push(...buildPropertyOrderingValues({ fieldName }));
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/augment/types/relationship/mutation.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ const buildRelationshipMutationAPI = ({
generatedTypeMap = buildRelationshipMutationOutputType({
mutationAction,
mutationOutputType,
propertyInputValues,
propertyOutputFields,
relationshipName,
fromType,
Expand Down Expand Up @@ -380,6 +381,7 @@ const buildRelationshipMutationDirectives = ({
const buildRelationshipMutationOutputType = ({
mutationAction,
mutationOutputType,
propertyInputValues,
propertyOutputFields,
relationshipName,
fromType,
Expand All @@ -390,7 +392,8 @@ const buildRelationshipMutationOutputType = ({
mutationAction === RelationshipMutation.CREATE ||
mutationAction === RelationshipMutation.DELETE ||
mutationAction === RelationshipMutation.MERGE ||
mutationAction === RelationshipMutation.UPDATE
(mutationAction === RelationshipMutation.UPDATE &&
propertyInputValues.length)
) {
const relationTypeDirective = buildRelationDirective({
relationshipName,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ test('query relationship property data', async t => {
});
});

test('query using inine fragment', async t => {
test('query using inline fragment', async t => {
t.plan(1);

let expected = {
Expand Down
Loading

0 comments on commit dff73a9

Please sign in to comment.