Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-fields-projection

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-fields-projection - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

4

lib/index.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc