@coderich/autograph 0.13.96 → 0.13.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coderich/autograph",
3
3
  "main": "index.js",
4
- "version": "0.13.96",
4
+ "version": "0.13.98",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -22,8 +22,8 @@ module.exports = class Pipeline {
22
22
  if (ignoreNull && itemize) return Util.map(args.value, value => Util.uvl(factory({ ...args, value }), value));
23
23
  return Util.uvl(factory(args), args.value);
24
24
  } catch (e) {
25
- const { data = {} } = e;
26
- throw Boom.boomify(e, { data });
25
+ throw Boom.boomify(e);
26
+ // const { data = {} } = e;
27
27
  // throw Boom.boomify(e, { data: { ...args, ...data } });
28
28
  }
29
29
  }, 'name', { value: name });
@@ -318,8 +318,9 @@ module.exports = class Resolver {
318
318
  query.result = result;
319
319
  return Emitter.emit(`post${type}`, event);
320
320
  }).then((result = query.result) => result).catch((e) => {
321
- const { data = {} } = e;
322
- throw Boom.boomify(e, { data: { ...event, ...data } });
321
+ throw Boom.boomify(e);
322
+ // const { data = {} } = e;
323
+ // throw Boom.boomify(e, { data: { ...event, ...data } });
323
324
  });
324
325
  }
325
326
 
@@ -15,6 +15,7 @@ module.exports = class QueryBuilder {
15
15
  this.#query = Object.defineProperties(query, {
16
16
  id: { writable: true, enumerable: true, value: query.id },
17
17
  args: { writable: true, enumerable: true, value: query.args || {} },
18
+ meta: { writable: true, enumerable: true, value: query.meta || {} },
18
19
  flags: { writable: true, enumerable: true, value: query.flags || {} },
19
20
  select: { writable: true, enumerable: true, value: query.select || Object.keys(model.fields) },
20
21
  options: { writable: true, enumerable: true, value: query.options || {} },