-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Hello,
It is not in the documentation but I would like to know if using query aliases are supported by the library.
I have a graphql query like this:
query Gifts {
gifts {
freeGifts: generateGift(price: 0) {
edges {
id,
name
}
}
saleGifts: generateGift(price: 9) {
edges {
id,
name
}
}
}
This is the mock I supply to my custom resolver:
const giftsMock = {
Gifts: () => ({
freeGifts: {
edges: [],
},
saleGifts: {
edges: [],
},
}),
};
For some reason, I am getting undefined for the freeGifts and saleGifts. I suspect this is because these are aliases. Can you confirm if aliases are support. Thank you in advance.
Metadata
Metadata
Assignees
Labels
No labels