Skip to content

Commit 0aaf829

Browse files
authored
Merge pull request #1238 from benogle/bo/add-microfiber
Add microfiber SDL manipulation library to the Code page's list of javascript tools
2 parents 65eddec + 9a5bc9d commit 0aaf829

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Microfiber
3+
description: A library to query and manipulate GraphQL Introspection Query results.
4+
url: https://github.com/anvilco/graphql-introspection-tools
5+
github: anvilco/graphql-introspection-tools
6+
npm: "microfiber"
7+
---
8+
9+
Microfiber is a JavaScript library that allows:
10+
11+
* Digging through your Introspection Query Results for a specific Query, Mutation, Type, Field, Argument or Subscription.
12+
* Removing a specific Query, Mutation, Type, Field/InputField, Argument or Subscription from your Introspection Query Results.
13+
* Removing Queries, Mutations, Fields/InputFields or Arguments that refer to Type that does not exist in - or has been removed from - your Introspection Query Results.
14+
15+
```sh
16+
npm install microfiber
17+
# OR
18+
yarn add microfiber
19+
```
20+
21+
Then in JS:
22+
23+
```js
24+
import { Microfiber } from 'microfiber'
25+
26+
const introspectionQueryResults = {...}
27+
28+
const microfiber = new Microfiber(introspectionQueryResults)
29+
30+
// ...do some things to your schema with `microfiber`
31+
32+
const cleanedIntrospectonQueryResults = microfiber.getResponse()
33+
```

0 commit comments

Comments
 (0)