Handle undefined attributes in records resolver
This commit is contained in:
parent
139fb37bef
commit
f8a7e32c78
@ -46,7 +46,7 @@ export const createResolvers = config => {
|
||||
wns_records: async (_, { attributes }) => {
|
||||
log('WNS records...');
|
||||
|
||||
const {limit, offset, ...queryAttributes } = attributes;
|
||||
const {limit, offset, ...queryAttributes } = attributes || {};
|
||||
const data = await registry.queryRecords(queryAttributes, false, false, limit, offset);
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user