schema.py 680 B

12345678910111213141516171819202122
  1. import graphene
  2. from goods.schema import Query as good_query
  3. from categories.schema import Query as category_query
  4. from orders.schema import Query as order_query
  5. from authAPI.schema import Query as auth_query
  6. from goods.schema import Mutations as good_mutations
  7. from categories.schema import Mutations as category_mutations
  8. from orders.schema import Mutations as order_mutations
  9. from authAPI.schema import Mutations as auth_mutations
  10. import graphql_jwt
  11. class Mutation(good_mutations,category_mutations,order_mutations,auth_mutations):
  12. pass
  13. class Query(good_query,category_query,order_query,auth_query):
  14. pass
  15. schema = graphene.Schema(query = Query,mutation=Mutation)