スキル一覧に戻る
Rehan-Ul-Haq

graphql-api-builder

by Rehan-Ul-Haq

9🍴 2📅 2026年1月8日
GitHubで見るManusで実行

SKILL.md


name: graphql-api-builder description: Guide for building GraphQL APIs. This skill should be used when users want to create a GraphQL API, design schemas, or implement resolvers.

GraphQL API Builder

This skill helps build GraphQL APIs.

When to Use

Use this skill when a user asks to:

  • Create a GraphQL API
  • Design a GraphQL schema
  • Implement resolvers

How to Build a GraphQL API

Step 1: Design the Schema

Define types, queries, and mutations. Use assets/schema-template.graphql as a starting point.

Key elements:

  • Types define data structures
  • Queries fetch data
  • Mutations modify data

Step 2: Implement Resolvers

Create resolver functions for each query and mutation. Use assets/resolver-template.js as a starting point.

Step 3: Set Up the Server

For Apollo Server:

const { ApolloServer } = require('apollo-server');

const server = new ApolloServer({ typeDefs, resolvers });

server.listen().then(({ url }) => {
  console.log(`Server ready at ${url}`);
});

Step 4: Add Authentication

Implement JWT authentication in the context:

const server = new ApolloServer({
  typeDefs,
  resolvers,
  context: ({ req }) => {
    const token = req.headers.authorization || '';
    const user = verifyToken(token);
    return { user };
  }
});

Step 5: Connect Database

Use an ORM like Prisma or Sequelize to connect to PostgreSQL.

Output

Generate the following files:

  • schema.graphql - GraphQL schema
  • resolvers.js - Resolver implementations
  • server.js - Server setup

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です