We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f7f3ff commit d13bc6dCopy full SHA for d13bc6d
value/constants/api.graphql
@@ -20,9 +20,6 @@ extend type Customer{
20
21
22
type Query {
23
- # return null value
24
- emptyCustomer(id: ID): Customer
25
-
26
# set the default value
27
customer(id: ID): Customer
28
@value(
value/constants/tests/Test.js
@@ -8,11 +8,7 @@ const {
8
9
describe(testDescription, function () {
10
const tests = [
11
- { label: "emptyCustomer with return null",
12
- query: '{emptyCustomer(id:1){name city }}',
13
- expected: {emptyCustomer: null},
14
- },
15
- { label: "customer(1)",
+ { label: "customer(1) return default name and city ",
16
query: '{customer(id:1){name city }}',
17
expected: {customer: {name:'John Doe',city:'Miami'}},
18
},
0 commit comments