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

graphql-schemax

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-schemax - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.0.13](https://github.com/nicolasdao/graphql-schemax/compare/v0.0.12...v0.0.13) (2021-11-23)
### Features
* Add support for aliases ([fd6fcdf](https://github.com/nicolasdao/graphql-schemax/commit/fd6fcdf976d6f2cf3ec86d881a4b6e9f50fa680a))
### [0.0.12](https://github.com/nicolasdao/graphql-schemax/compare/v0.0.11...v0.0.12) (2021-11-13)

@@ -7,0 +14,0 @@

2

package.json
{
"name": "graphql-schemax",
"version": "0.0.12",
"version": "0.0.13",
"description": "Creates GraphQL string schema from plain JSON objects.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -313,3 +313,3 @@ # GRAPHQL-SCHEMAX

Use the `__required` property as follow:
Use the `__required` property or its alias `!` as follow:

@@ -331,2 +331,4 @@ ```js

> With the alias: `users: { where: { id:'ID', first_name:'String', '!':true }, ':': [{`
Which outputs:

@@ -358,3 +360,3 @@

To make an anonymous enum required, use the reserved `__required` string:
To make an anonymous enum required, use the reserved `__required` string, or its alias `!`:

@@ -371,2 +373,4 @@ ```js

> With the alias: `['car','home','furniture','!']`
Which outputs:

@@ -396,3 +400,3 @@

Use the `__noempty` keyword to create enums similar to `[RoleEnum!]`.
Use the `__noempty` keyword or its alias `!0` to create enums similar to `[RoleEnum!]`.

@@ -415,2 +419,4 @@ ```js

> With the alias: `roles:[['admin','writer','reader','__required','!0','__name:RoleEnum']]`
Which outputs:

@@ -447,3 +453,3 @@

Use the `__name` property as follow:
Use the `__name` property or its alias `#` as follow:

@@ -466,2 +472,4 @@ ```js

> With the alias: `users: { where: { id:'ID', first_name:'String', __required:true, '#': 'WhereUserInput' }, ':': [{`
Which outputs:

@@ -493,3 +501,3 @@

To use a custom enum, use the reserved `__name:YOUR_NAME` string:
To use a custom enum, use the reserved `__name:YOUR_NAME` string or its alias version `#YOUR_NAME`:

@@ -506,2 +514,5 @@ ```js

> With the alias: `['car','home','furniture','#ProductTypeEnum']`
> NOTICE: With the `#` alias, the `:` is dropped.
```js

@@ -508,0 +519,0 @@ type Query {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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