Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.next
node_modules
/.idea
pnpm-lock.yaml
package-lock.json
.next
node_modules
/.idea
pnpm-lock.yaml
package-lock.json
44,658 changes: 22,329 additions & 22,329 deletions README.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
58 changes: 29 additions & 29 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
const nextraModule = require('nextra')
// Handle both default export and named export cases
const nextra = typeof nextraModule === 'function'
? nextraModule
: (nextraModule.default || nextraModule)

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx'
})

module.exports = withNextra({
async redirects() {
return [
{
// from 'error/message' to 'tips-and-tricks/error-message'
source: '/error/:errorId',
destination: '/tips-and-tricks/:errorId',
permanent: false,
},
{
// from 'doc/:topic' to 'concepts/:topic'
source: '/doc/:topic',
destination: '/concepts/:topic',
permanent: false,
}
]
}
})
const nextraModule = require('nextra')
// Handle both default export and named export cases
const nextra = typeof nextraModule === 'function'
? nextraModule
: (nextraModule.default || nextraModule)
const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx'
})
module.exports = withNextra({
async redirects() {
return [
{
// from 'error/message' to 'tips-and-tricks/error-message'
source: '/error/:errorId',
destination: '/tips-and-tricks/:errorId',
permanent: false,
},
{
// from 'doc/:topic' to 'concepts/:topic'
source: '/doc/:topic',
destination: '/concepts/:topic',
permanent: false,
}
]
}
});
70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"name": "nextra-docs-template",
"version": "0.0.1",
"description": "Nextra docs template",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shuding/nextra-docs-template.git"
},
"author": "Shu Ding <g@shud.in>",
"license": "MIT",
"bugs": {
"url": "https://github.com/shuding/nextra-docs-template/issues"
},
"homepage": "https://github.com/shuding/nextra-docs-template#readme",
"dependencies": {
"next": "^13.5.6",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"engines": {
"node": ">=22"
},
"type": "commonjs",
"devDependencies": {
"@types/node": ">=22",
"typescript": "^4.9.3"
}
}
{
"name": "nextra-docs-template",
"version": "0.0.1",
"description": "Nextra docs template",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shuding/nextra-docs-template.git"
},
"author": "Shu Ding <g@shud.in>",
"license": "MIT",
"bugs": {
"url": "https://github.com/shuding/nextra-docs-template/issues"
},
"homepage": "https://github.com/shuding/nextra-docs-template#readme",
"dependencies": {
"next": "^13.5.6",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"engines": {
"node": ">=22"
},
"type": "commonjs",
"devDependencies": {
"@types/node": ">=22",
"typescript": "^4.9.3"
}
}
32 changes: 16 additions & 16 deletions pages/GraphQL/Intro.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# GraphQL

GraphQL is a query language and runtime for APIs that enables clients to request precisely the data they need from the server. It provides a more efficient and flexible alternative
to traditional RESTful APIs by allowing clients to define the structure of their data requests. Key concepts include a schema defining data types, queries for data retrieval,
mutations for data modification, subscriptions for real-time updates, and GraphQL clients for interacting with GraphQL APIs on the client side.

## GraphQL clients

A GraphQL client is a software tool or library that simplifies communication between client applications and GraphQL APIs. It helps in constructing and sending GraphQL queries,
mutations, and subscriptions to the server, managing responses, handling errors, and optimizing data fetching. GraphQL clients abstract away the complexities of making HTTP requests
and parsing GraphQL responses, making it easier for developers to work with GraphQL APIs in their applications.

### Using Ensemble as a GraphQL client

This tutorial will explain how to utilize Ensemble as a GraphQL client, encompassing tasks such as sending GraphQL queries and mutations, as well as handling the resulting responses.

# GraphQL
GraphQL is a query language and runtime for APIs that enables clients to request precisely the data they need from the server. It provides a more efficient and flexible alternative
to traditional RESTful APIs by allowing clients to define the structure of their data requests. Key concepts include a schema defining data types, queries for data retrieval,
mutations for data modification, subscriptions for real-time updates, and GraphQL clients for interacting with GraphQL APIs on the client side.
## GraphQL clients
A GraphQL client is a software tool or library that simplifies communication between client applications and GraphQL APIs. It helps in constructing and sending GraphQL queries,
mutations, and subscriptions to the server, managing responses, handling errors, and optimizing data fetching. GraphQL clients abstract away the complexities of making HTTP requests
and parsing GraphQL responses, making it easier for developers to work with GraphQL APIs in their applications.
### Using Ensemble as a GraphQL client
This tutorial will explain how to utilize Ensemble as a GraphQL client, encompassing tasks such as sending GraphQL queries and mutations, as well as handling the resulting responses.
22 changes: 11 additions & 11 deletions pages/GraphQL/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"Intro": {
"title": "Intro"
},
"mutations": {
"title": "Mutations"
},
"queries": {
"title": "Queries"
}
}
{
"Intro": {
"title": "Intro"
},
"mutations": {
"title": "Mutations"
},
"queries": {
"title": "Queries"
}
}
Loading