@xircus-web3/graph v1.0.121
@xircus-web3/graph
Documentation
For full documentation and examples, visit Xircus Developer Documentation.
Recent Changes
- Added support for Array Type Mixed
- Added Data Source for Skin Routers
- Added Pagination Params
Installation
Install Xircus Graph SDK and its ethers peer dependency.
npm install @xircus-web3/graph graphql graphql-yoga mongoose
or
yarn add @xircus-web3/graph graphql graphql-yoga mongoose
Usage
- Sample setup with Mongoose, GraphQL Yoga on NextJS
- Create pages/api/graphql.js in your next app
- Make sure to have .env file DATABASE_URL=mongodburl
- to test locally .env DATABASE_URL=mongodb://localhost:27017/DATABASE_NAME
import { createYoga, createSchema } from 'graphql-yoga'
import mongoose from 'mongoose'
import {
providerSchema,
createProviderSchema,
createMongo,
createMongoAuth
} from '@xircus-web3/graph'
const schema =
const server = createYoga({
schema: createSchema(schema),
context: async({ req }) => {
const models = await createMongo(mongoose, providerSchema)
const auth = createMongoAuth(req, models)
return {
models,
auth
}
}
})
export default server
Community
Check out the following places for more xircus-related content:
- Join the discussions on GitHub
- Follow @xircusnft on Twitter for project updates
- Share your project/organization using Xircus
- Browse the awesome-xircus list of awesome projects and resources
Support
If you find @xircus-web3/graph useful, please consider supporting our development. Thank you 🙏
30 days ago
30 days ago
30 days ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
6 months ago
6 months ago
6 months ago
10 months ago
1 year ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago