Skip to content

Commit

Permalink
chore(docs): memory examples link
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Aug 31, 2024
1 parent 4e5a170 commit 0f90673
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions examples/generated|generated_arguments__arguments.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/* eslint-disable */
import { SocialStudies } from './$generated-clients/SocialStudies/__.js'
import { showJson } from './$helpers.js'

const socialStudies = SocialStudies.create()

const countries = await socialStudies.query.countries({
$: { filter: { name: { in: ['Canada', 'Germany', 'Japan'] } } },
$: { filter: { name: { in: [`Canada`, `Germany`, `Japan`] } } },
name: true,
continent: { name: true },
})
Expand Down
4 changes: 0 additions & 4 deletions examples/transport-memory.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* tags: transport-memory
*/

import { GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql'
import { Graffle } from '../src/entrypoints/graffle/main.js'
import { showJson } from './$helpers.js'
Expand Down
2 changes: 1 addition & 1 deletion website/content/examples/generated-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Graffle as SocialStudies } from './graffle/__.js'
const socialStudies = SocialStudies.create()

const countries = await socialStudies.query.countries({
$: { filter: { name: { in: ['Canada', 'Germany', 'Japan'] } } },
$: { filter: { name: { in: [`Canada`, `Germany`, `Japan`] } } },
name: true,
continent: { name: true },
})
Expand Down
4 changes: 0 additions & 4 deletions website/content/examples/transport-memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ aside: false
# Transport Memory

```ts twoslash
/**
* tags: transport-memory
*/

import { GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql'
import { Graffle } from 'graphql-request/graffle/main'

Expand Down
2 changes: 2 additions & 0 deletions website/content/guides/transports/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Graffle has the concept of "transports". A transport is how the request reaches the GraphQL schema for execution. This section is about the "memory" transport.

<!--@include: @/guides/_example_links/transport-memory.md-->

## Overview

The `memory` transport works with in-memory schemas. It ultimately invokes [`execute`](https://graphql.org/graphql-js/execution/) from the `graphql` package. This transport is used when you instantiate Graffle with a [`GraphQLSchema`](https://graphql.org/graphql-js/type/#schema).
Expand Down

0 comments on commit 0f90673

Please sign in to comment.