![New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions](https://cdn.sanity.io/images/cgdhsj6q/production/86e6ebdea652d20da070ebbda20134b839972db7-1024x1024.webp?w=800&fit=max&auto=format)
Security News
New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
@anchan828/gen-graphql-merge-schema
Advanced tools
Changelog
0.7.62 (2023-03-05)
Note: Version bump only for package @anchan828/gen-graphql-schema-packages
Readme
Merge multiple schema. merge-graphql-schemas based.
Supported directives: @orderBy @where @relay
import { mergeTypes } from "@anchan828/gen-graphql-merge-schema";
const types = [`type Test {id: ID}`, `type Test2 {tests: [Test] @orderBy @where @relay }`];
mergeTypes(types);
//=> """A connection for relay"""
// interface Connection {
// """Identifies the total count of items in the connection."""
// totalCount: Int
//
// """Information to aid in pagination."""
// pageInfo: PageInfo!
//
// """A list of edges."""
// edges: [Edge]
// }
//
// """An edge in a connection."""
// interface Edge {
// """A cursor for use in pagination."""
// cursor: String
// }
//
// input IDWhereOperator {
// type: IDWhereOperatorType!
// value: [ID]!
// }
//
// enum IDWhereOperatorType {
// EQ
// NOT_EQ
// IN
// NOT_IN
// }
//
// """An object with an ID."""
// interface Node {
// """ID of the object."""
// id: ID!
// }
//
// enum OrderDirection {
// ASC
// DESC
// }
//
// """Information about pagination in a connection."""
// type PageInfo {
// """When paginating backwards, the cursor to continue."""
// startCursor: String
//
// """When paginating forwards, the cursor to continue."""
// endCursor: String
//
// """When paginating forwards, are there more items?"""
// hasNextPage: Boolean
//
// """When paginating backwards, are there more items?"""
// hasPreviousPage: Boolean
// }
//
// type Query
//
// type Test implements Node {
// id: ID
// }
//
// type Test2 {
// tests(orderBy: [TestOrder], where: TestWhere, before: String, after: String, first: Int, last: Int): TestConnection
// }
//
// """The connection type for Test"""
// type TestConnection implements Connection {
// """Identifies the total count of Test items in the connection."""
// totalCount: Int
//
// """A list of TestEdge."""
// edges: [TestEdge]
//
// """Information to aid in pagination."""
// pageInfo: PageInfo!
// }
//
// """An edge in a TestConnection."""
// type TestEdge implements Edge {
// """The item at the end of the edge."""
// node: Test
//
// """A cursor for use in pagination."""
// cursor: String
// }
//
// input TestOrder {
// sort: TestSort
// direction: OrderDirection
// }
//
// enum TestSort {
// ID
// }
//
// input TestWhere {
// id: [IDWhereOperator]
// }
MIT.
FAQs
merge multiple schema. merge-graphql-schemas based.
The npm package @anchan828/gen-graphql-merge-schema receives a total of 1 weekly downloads. As such, @anchan828/gen-graphql-merge-schema popularity was classified as not popular.
We found that @anchan828/gen-graphql-merge-schema demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
Security News
Results from the 2023 State of JavaScript Survey highlight key trends, including Vite's dominance, rising TypeScript adoption, and the enduring popularity of React. Discover more insights on developer preferences and technology usage.
Security News
The US Justice Department has penalized two consulting firms $11.3 million for failing to meet cybersecurity requirements on federally funded projects, emphasizing strict enforcement to protect sensitive government data.