Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
extract-field-paths
Advanced tools
Tools to perform analysis on GraphQL documents.
$ yarn add --dev graphql-document-tools
graphql-document-tools
exports the following functions:
Extracts a list of field "paths" contained in a GraphQL document.
e.g. for the following query:
query GET_BUSINESS($BizId: String) {
business(id: $BizId) {
name
location {
city
}
}
}
We would return the following set of field paths:
["Query.business", "Business.name", "Business.location", "Location.city"]
extractFieldPaths(
/**
* The text of the document to analyse, in raw string format
*/
documentText: string,
/**
* The text of your schema, in string SDL format (e.g. as created by printSchema)
* @see https://graphql.org/graphql-js/utilities/#printschema
*/
schemaText: string,
): Set<string>
Sample Usage:
import { extractFieldPaths } from 'graphql-document-tools';
const fieldPaths = extractFieldPaths(schemaText, documentString);
FAQs
extract field paths from GraphQL documents
The npm package extract-field-paths receives a total of 0 weekly downloads. As such, extract-field-paths popularity was classified as not popular.
We found that extract-field-paths 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.