06 2020 档案

摘要:from elasticsearch_dsl import connections connections.create_connection([hosts=["http://username:password@elasticsearch.com]]) 阅读全文
posted @ 2020-06-18 15:08 青花メ 阅读(928) 评论(0) 推荐(0)
摘要:在Graphene中搜索Es中的数据一开始打算重写DjangoFilterConnectionField和Django Model对应的type。但是这样比较复杂,字段的对应以及查询显示,排序等。后来发现一个东西: graphene-elastic 阅读全文
posted @ 2020-06-15 00:11 青花メ 阅读(196) 评论(0) 推荐(0)
摘要:class DictType(graphene.InputObjectType): name = graphene.InputField(graphene.String) # 定义一个查询语句 class Query(ObjectType): all_user = graphene.List(Use 阅读全文
posted @ 2020-06-05 01:00 青花メ 阅读(372) 评论(0) 推荐(0)