graphene graphql dictionary as a type

前端 未结 2 2048
忘掉有多难
忘掉有多难 2021-02-19 11:02

I\'m a newbie for the graphene and I\'m trying to map the following structure into a Object Type and having no success at all

    {
  \"details\": {
    \"12345\         


        
2条回答
  •  情深已故
    2021-02-19 11:18

    You can use graphene.types.generic.GenericScalar

    Ref : https://github.com/graphql-python/graphene/issues/384

提交回复
热议问题