Skip to content

Commit

Permalink
docs: Beta 5 Schema Updates (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: sarahschwartz <58856580+sarahschwartz@users.noreply.github.com>
  • Loading branch information
calldelegation and sarahschwartz committed Jan 31, 2024
1 parent f7cad89 commit ab8ccc0
Show file tree
Hide file tree
Showing 31 changed files with 1,510 additions and 634 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,18 @@ jobs:
npm install
npm run lint:docs:check
check-coverage:
name: Check Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
# RUN COVERAGE CHECK
- name: Coverage Check
run: |
npm install
node scripts/coverage/index.mjs
8 changes: 3 additions & 5 deletions docs/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ The playground is an interactive and graphical IDE that includes a reference for

You can test out the Fuel GraphQL API playground here:

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

## API Endpoint
## RPC Endpoint

Beta-4:
https://beta-4.fuel.network/graphql
https://beta-5.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
Loading

0 comments on commit ab8ccc0

Please sign in to comment.