microfiber
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -28,4 +28,2 @@ "use strict"; | ||
// | ||
// interfaces | ||
// | ||
// remove types that have no fields/inputFields/possibleTypes | ||
@@ -68,4 +66,4 @@ // | ||
[_etc.KINDS.OBJECT]: 'fields', | ||
[_etc.KINDS.INPUT_OBJECT]: 'inputFields' // [KINDS.INTERFACE]: 'interfaces', | ||
[_etc.KINDS.INTERFACE]: 'fields', | ||
[_etc.KINDS.INPUT_OBJECT]: 'inputFields' | ||
}); | ||
@@ -307,2 +305,13 @@ | ||
getInterfaceField({ | ||
typeName, | ||
fieldName | ||
}) { | ||
return this.getField({ | ||
typeKind: _etc.KINDS.INTERFACE, | ||
typeName, | ||
fieldName | ||
}); | ||
} | ||
getArg({ | ||
@@ -309,0 +318,0 @@ typeKind = _etc.KINDS.OBJECT, |
{ | ||
"name": "microfiber", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "A library to query and manipulate GraphQL Introspection Query results in some useful ways.", | ||
@@ -5,0 +5,0 @@ "author": "Chris Newhouse", |
@@ -179,4 +179,10 @@ <a href="https://www.useanvil.com"><img src="/static/anvil.png" width="50"></a> | ||
--- | ||
#### getInterfaceField | ||
Get a specific Field from an Interface in your schema. A convenience wrapper around `getField({ typeKind: 'INTERFACE', ...})` | ||
```node | ||
const interfaceField = microfiber.getInterfaceField({ typeName, fieldName }) | ||
``` | ||
--- | ||
#### getInputField | ||
Get a specific InputField from your schema. | ||
Get a specific InputField from your schema. A convenience wrapper around `getField({ typeKind: 'INPUT_OBJECT', ...})` | ||
```node | ||
@@ -183,0 +189,0 @@ const inputField = microfiber.getInputField({ typeName, fieldName }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43058
917
377