Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support extending interfaces

オープン
#147 コメント 4 件 リアクション 1 件 担当者 1 名 GitHub で見る

@Cito がすでに取り組んでいます。

2021年11月22日 から。

評価

この issue はまだ評価されていません。

説明

question

Reporting issues with GraphQL-core 3

The GraphQL protocol already supports interfaces extending other interfaces like

interface Identifiable {
  id: ID!
}

interface Resource implements Identifiable {
  id: ID!
  name: String!
}

type SomeResource implements Resource {
  id: ID!
  name: String!
}

When loading the schema we get an error

File "/usr/local/lib/python3.6/site-packages/graphql/type/validate.py", line 91, in assert_valid_schema
   raise TypeError("\n\n".join(error.message for error in errors))
   TypeError: Type SomeResource must implement Identifiable because it is implemented by Resource.

This can be solved by doing

type SomeResource implements Resource & Identifiable {
  id: ID!
  name: String
}

But its a bit annoying

主要言語
Python
スター
531
フォーク
147
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphql-python/graphql-core のほかの issue

graphql-python/graphql-core の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。