From f2c43ebaf18a7e333615fa57535dc1df089de36c Mon Sep 17 00:00:00 2001 From: farid saravi Date: Tue, 9 Jul 2019 23:06:00 +0430 Subject: [PATCH] add graphql root schema --- graphql/schema.graphql | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/graphql/schema.graphql b/graphql/schema.graphql index 4c9db0e..825f37f 100644 --- a/graphql/schema.graphql +++ b/graphql/schema.graphql @@ -4,6 +4,8 @@ scalar DateTime @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\Date "A date string with format `Y-m-d`, e.g. `2011-05-23`." scalar Date @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\Date") +type Mutation + type Query { users: [User!]! @paginate(type: "paginator" model: "App\\User") user(id: ID @eq): User @find(model: "App\\User") @@ -15,4 +17,14 @@ type User { email: String! created_at: DateTime! updated_at: DateTime! + cell_number: String +} + +input DateRange { + from: Date! + to: Date! } + +#import ../modules/wm-crm/graphql/CRM.graphql + +