Skip to content

Commit d13bc6d

Browse files
committed
resolved review comments
1 parent 9f7f3ff commit d13bc6d

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

value/constants/api.graphql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ extend type Customer{
2020

2121

2222
type Query {
23-
# return null value
24-
emptyCustomer(id: ID): Customer
25-
2623
# set the default value
2724
customer(id: ID): Customer
2825
@value(

value/constants/tests/Test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ const {
88

99
describe(testDescription, function () {
1010
const tests = [
11-
{ label: "emptyCustomer with return null",
12-
query: '{emptyCustomer(id:1){name city }}',
13-
expected: {emptyCustomer: null},
14-
},
15-
{ label: "customer(1)",
11+
{ label: "customer(1) return default name and city ",
1612
query: '{customer(id:1){name city }}',
1713
expected: {customer: {name:'John Doe',city:'Miami'}},
1814
},

0 commit comments

Comments
 (0)