
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@coderich/autograph
Advanced tools
AutoGraph is a powerful framework to instantly build Relay-Compliant GraphQL APIs that adhere to standards and best practice. It provides a robust set of directives that encapsulates data access, validation, transformations, and so much more!
npm i @coderich/autograph --save
scalar AutoGraphMixed
enum AutoGraphScopeEnum { private protected public restricted }
enum AutoGraphOnDeleteEnum { cascade nullify restrict }
enum AutoGraphIndexEnum { unique }
arg | type | description |
---|---|---|
id | String | Specify database id field name (default: id ) |
meta | String | Define a model |
alias | String | Specify database table name (default models's name) |
scope | AutoGraphScopeEnum | Access scope for this model (default protected ) |
driver | String | Specify database driver (default default ) |
namespace | String | Define a custom namespace |
createdAt | String | TBD |
updatedAt | String | TBD |
arg | type | description |
---|---|---|
alias | String | Specify database field name (default field's name) |
scope | AutoGraphScopeEnum | Access scope for this field (default protected ) |
enforce | [AutoGraphEnforceEnum!] | List of Rules to enforce |
noRepeat | Boolean | TBD |
onDelete | AutoGraphOnDeleteEnum | Specify onDelete behavior |
transform | [AutoGraphTransformEnum!] | List of Transformers to apply |
materializeBy | String | Define a virtual field |
arg | type | description |
---|---|---|
on | [String!]! | The field names to use for this index |
type | AutoGraphIndexEnum! | The type of index to create |
name | String | The name of the index |
Each Resolver
treats your schema definition as a graph of connected nodes. To begin a query or mutation, you must first identify a node in the graph as your starting point.
Identify a node, returns a QueryBuilder
.
const queryBuilder = resolver.match('Person');
Identify a node, returns a Transaction
.
const txn = resolver.transaction('Person');
FAQs
AutoGraph
The npm package @coderich/autograph receives a total of 67 weekly downloads. As such, @coderich/autograph popularity was classified as not popular.
We found that @coderich/autograph demonstrated a healthy version release cadence and project activity because the last version was released less than 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.