Questions tagged «graphql-php»

6
如何在不编写长查询的情况下查询所有GraphQL类型字段?
假设您具有GraphQL类型,并且其中包含许多字段。如何在不写下包含所有字段名称的长查询的情况下查询所有字段? 例如,如果我有这些字段: public function fields() { return [ 'id' => [ 'type' => Type::nonNull(Type::string()), 'description' => 'The id of the user' ], 'username' => [ 'type' => Type::string(), 'description' => 'The email of user' ], 'count' => [ 'type' => Type::int(), 'description' => 'login count for the user' ] ]; …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.