Skip to content

Add microfiber SDL manipulation library to the Code page's list of javascript tools #1238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions src/content/code/language-support/javascript/tools/microfiber.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Microfiber
description: A library to query and manipulate GraphQL Introspection Query results.
url: https://github.com/anvilco/graphql-introspection-tools
github: anvilco/graphql-introspection-tools
npm: "microfiber"
---

Microfiber is a JavaScript library that allows:

* Digging through your Introspection Query Results for a specific Query, Mutation, Type, Field, Argument or Subscription.
* Removing a specific Query, Mutation, Type, Field/InputField, Argument or Subscription from your Introspection Query Results.
* 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.

```sh
npm install microfiber
# OR
yarn add microfiber
```

Then in JS:

```js
import { Microfiber } from 'microfiber'

const introspectionQueryResults = {...}

const microfiber = new Microfiber(introspectionQueryResults)

// ...do some things to your schema with `microfiber`

const cleanedIntrospectonQueryResults = microfiber.getResponse()
```