graphql-fields-projection
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -11,3 +11,3 @@ /** | ||
*/ | ||
export function createSelectedFields(queryInfo: any, options: { | ||
export function createSelectedFields(queryInfo: any, options?: { | ||
additionalFields?: [string]; | ||
@@ -26,3 +26,3 @@ path?: string; | ||
*/ | ||
export function createMergedSelectedFields(batchingKeys: [string], options: { | ||
export function createMergedSelectedFields(batchingKeys: [string], options?: { | ||
additionalFields?: [string]; | ||
@@ -29,0 +29,0 @@ returnType?: string; |
@@ -16,3 +16,3 @@ const _ = require('lodash'); | ||
*/ | ||
function createSelectedFields(queryInfo, options) { | ||
function createSelectedFields(queryInfo, options = {}) { | ||
const { additionalFields = [], path = '', returnType = 'array' } = options; | ||
@@ -38,3 +38,3 @@ const parsedFields = path ? graphqlFields(queryInfo)[path] : graphqlFields(queryInfo); | ||
*/ | ||
function createMergedSelectedFields(batchingKeys, options) { | ||
function createMergedSelectedFields(batchingKeys, options = {}) { | ||
const { additionalFields = [], returnType = 'array' } = options; | ||
@@ -41,0 +41,0 @@ let mergeSelectedFields = []; |
{ | ||
"name": "graphql-fields-projection", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21983