https://github.com/web-dev-max/next
Next and GraphQL
https://github.com/web-dev-max/next
Last synced: 2 months ago
JSON representation
Next and GraphQL
- Host: GitHub
- URL: https://github.com/web-dev-max/next
- Owner: web-dev-max
- Created: 2025-03-04T21:08:17.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-24T10:46:21.000Z (about 1 year ago)
- Last Synced: 2025-12-28T13:29:47.846Z (6 months ago)
- Language: TypeScript
- Size: 214 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Getting Started
First, run the development server:
```bash
node -v = 20v
# or
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
## Examples of queries
### Apollo Server
[http://localhost:3000/api/graphql](http://localhost:3000/api/graphql)
```bash
# Удаление пользователя
mutation {
deleteUser(id: number) {
message
}
}
# Регистрация пользователя
mutation {
registerUser(
name: ""
email: ""
password: ""
isAdmin: boolean
) {
user {
id
name
email
isAdmin
}
token
}
}
# Авторизация пользователя
mutation {
loginUser(
email: ""
password: ""
) {
user {
id
name
email
isAdmin
}
token
}
}
```