如何使用graphql顺序查询

时间:2018-10-19 03:22:46

标签: graphql

示例:

class User(ObjectType):
    name = String()
    password = String()
    first_name = String()
    def resolve_first_name(self, info):
        return name.split(' ')[0]

如何在name之前查询first_name

0 个答案:

没有答案