【问题标题】:What is the exclamation mark for after the variable?变量后面的感叹号是什么?
【发布时间】:2019-09-16 02:47:30
【问题描述】:

我正在尝试从 graph ql appollo 教程中理解 snipppet。变量后面的感叹号是什么?身份证!

  query GetLaunchById($id: ID!) {
      launch(id: $id) {
        id
        rocket {
          id
          type
        }
      }
    }

【问题讨论】:

标签: graphql


【解决方案1】:

这意味着它不可为空。

见:https://graphql.org/learn/schema/

【讨论】:

    猜你喜欢
    • 2018-05-22
    • 2018-01-05
    • 1970-01-01
    • 1970-01-01
    • 2011-09-09
    • 2011-12-22
    • 2018-11-14
    • 2023-04-07
    • 2011-01-11
    相关资源
    最近更新 更多