hotchocolate

Error “The ID `1` has an invalid format” when querying HotChocolate

末鹿安然 提交于 2021-02-11 17:58:08
问题 Tried to make own project, looking to ChilliCream/graphql-workshop as example. There is a part, where id parameter of a query marked with IDAttribute . Description of ID type says following: The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will

Error “The ID `1` has an invalid format” when querying HotChocolate

南楼画角 提交于 2021-02-11 17:58:01
问题 Tried to make own project, looking to ChilliCream/graphql-workshop as example. There is a part, where id parameter of a query marked with IDAttribute . Description of ID type says following: The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will

Add middlewares on all mutations using Hot Chocolate v11

孤者浪人 提交于 2021-01-28 21:28:33
问题 I'm working on Transaction per mutation with EF core. I tried an implementation by adding my transaction logic into the Request pipeline UseRequest and it's quite good. But the problem with this implementation is that the transaction logic will be executed each time we have an incoming request Query or Mutation. I think that the Hot Chocolate middlewares can do the work by adding a middleware on all incoming mutations, but the only doc I found is about adding middlewares to fields https:/