Skip to content

Commit

Permalink
Beta 5 updatesa
Browse files Browse the repository at this point in the history
  • Loading branch information
calldelegation committed Dec 27, 2023
1 parent f7cad89 commit 31e5074
Show file tree
Hide file tree
Showing 16 changed files with 348 additions and 88 deletions.
6 changes: 6 additions & 0 deletions docs/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ The playground is an interactive and graphical IDE that includes a reference for

You can test out the Fuel GraphQL API playground here:

Beta-5:
https://beta-5.fuel.network/playground

Beta-4:
https://beta-4.fuel.network/playground

## API Endpoint

Beta-5:
https://beta-5.fuel.network/graphql

Beta-4:
https://beta-4.fuel.network/graphql
6 changes: 3 additions & 3 deletions docs/querying-from-a-dapp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This section covers just a few options available to get you started.

```javascript
export async function getHealth() {
let response = await fetch('https://beta-4.fuel.network/graphql', {
let response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand All @@ -36,7 +36,7 @@ npm install @apollo/client graphql
import { ApolloClient, InMemoryCache, gql } from '@apollo/client';

const apolloClient = new ApolloClient({
uri: 'https://beta-4.fuel.network/graphql',
uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});

Expand Down Expand Up @@ -66,7 +66,7 @@ npm install urql graphql
import { Client, cacheExchange, fetchExchange } from 'urql';

const urqlClient = new Client({
url: 'https://beta-4.fuel.network/graphql',
url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});

Expand Down
74 changes: 74 additions & 0 deletions docs/reference/mutations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,82 @@ title: Mutations
category: Reference
---

{/* TODO: Finish this mutation */}

# Mutations

## `startSession`

### `startSession` `args`

`id: ID!`

returns `Boolean!`

## `endSession`

### `endSession` `args`

`id: ID!`

returns `Boolean!`

## `reset`

### `reset` `args`

`id: ID!`

returns `Boolean!`

## `execute`

### `execute` `args`

`id: ID!`

`op: String!`

returns `Boolean!`

## `setSingleStepping`

### `setSingleStepping` `args`

`id: ID!`

`enable: boolean`

returns `Boolean!`

## `setBreakpoint`

### `setBreakpoint` `args`

`id: ID!`

`breakpoint`: [`Breakpoint!`](/docs/reference/objects/#breakpoint)

returns `Boolean!`

## `startTx`

### `startTx` `args`

`id: ID!`

`txJson: String!`

returns `RunResult!`

## `continueTx`

### `continueTx` `args`

`id: ID!`

returns `RunResult!`

## `dryRun`

A mutation that spins up a new temporary node from the current state and emulates a given transaction.
Expand Down
Loading

0 comments on commit 31e5074

Please sign in to comment.