diff --git a/dataconnect/connector/user/mutations.gql b/dataconnect/connector/user/mutations.gql index eeedba82..80fdbd8d 100644 --- a/dataconnect/connector/user/mutations.gql +++ b/dataconnect/connector/user/mutations.gql @@ -3,7 +3,8 @@ mutation CreateUser( $email: String!, $fullName: String!, $role: UserBaseRole!, - $userRole: String + $userRole: String, + $photoUrl: String ) @auth(level: USER) { user_insert( data: { @@ -12,6 +13,7 @@ mutation CreateUser( fullName: $fullName role: $role userRole: $userRole + photoUrl: $photoUrl } ) } @@ -21,7 +23,8 @@ mutation UpdateUser( $email: String, $fullName: String, $role: UserBaseRole, - $userRole: String + $userRole: String, + $photoUrl: String ) @auth(level: USER) { user_update( id: $id, @@ -30,6 +33,7 @@ mutation UpdateUser( fullName: $fullName role: $role userRole: $userRole + photoUrl: $photoUrl } ) } diff --git a/dataconnect/connector/user/queries.gql b/dataconnect/connector/user/queries.gql index d761fdc6..044abebf 100644 --- a/dataconnect/connector/user/queries.gql +++ b/dataconnect/connector/user/queries.gql @@ -5,6 +5,7 @@ query listUsers @auth(level: USER) { fullName role userRole + photoUrl createdDate updatedDate } @@ -19,6 +20,7 @@ query getUserById( fullName role userRole + photoUrl } } @@ -41,5 +43,6 @@ query filterUsers( fullName role userRole + photoUrl } } diff --git a/dataconnect/schema/user.gql b/dataconnect/schema/user.gql index ec927890..0d216676 100644 --- a/dataconnect/schema/user.gql +++ b/dataconnect/schema/user.gql @@ -8,7 +8,8 @@ type User @table(name: "users") { email: String! fullName: String! role: UserBaseRole! - userRole: String + userRole: String + photoUrl: String createdDate: Timestamp @default(expr: "request.time") updatedDate: Timestamp @default(expr: "request.time") createdBy: String @default(expr: "auth.uid")