1.0.5 • Published 9 months ago

graphql-js-invidual-to-object-argument v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

CodeMod

Convert graphql function call from individual to object arguments

// From
const result = await graphql(schema, query, rootValue, context)
// To
const result3 = await graphql({
  schema:,
  source: query,
  rootValue,
  contextValue: context
})

Usage

npx graphql-js-invidual-to-object-argument <PATH>
// For typescript
npx graphql-js-invidual-to-object-argument <PATH> -- --parser=ts

Note

This codemod could not handle SpreadElement

const result = await graphql(...args)
1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago