diff --git a/dataconnect/connector/staff/mutations.gql b/dataconnect/connector/staff/mutations.gql index c75b085a..5c953451 100644 --- a/dataconnect/connector/staff/mutations.gql +++ b/dataconnect/connector/staff/mutations.gql @@ -7,7 +7,7 @@ mutation CreateStaff( $rating: Float, $reliabilityScore: Int, $backgroundCheckStatus: BackgroundCheckStatus!, - $certifications: JSON + $certifications: String ) @auth(level: USER) { staff_insert( data: { diff --git a/dataconnect/connector/staff/queries.gql b/dataconnect/connector/staff/queries.gql index c12698d0..f8c5b272 100644 --- a/dataconnect/connector/staff/queries.gql +++ b/dataconnect/connector/staff/queries.gql @@ -1,5 +1,5 @@ query listStaff @auth(level: USER) { - staff { + staffs { id employeeName vendorId diff --git a/dataconnect/schema/staff.gql b/dataconnect/schema/staff.gql index d2c640bc..fec7f725 100644 --- a/dataconnect/schema/staff.gql +++ b/dataconnect/schema/staff.gql @@ -1,5 +1,3 @@ -# firebase/dataconnect/schema/staff.gql - enum EmploymentType { FULL_TIME PART_TIME @@ -14,7 +12,7 @@ enum BackgroundCheckStatus { EXPIRED } -type Staff @table(name: "staff") { +type Staff @table(name: "staffs") { id: UUID! @default(expr: "uuidV4()") employeeName: String! vendorId: UUID @@ -24,7 +22,7 @@ type Staff @table(name: "staff") { rating: Float reliabilityScore: Int backgroundCheckStatus: BackgroundCheckStatus! - certifications: JSON + certifications: String createdDate: Timestamp @default(expr: "request.time") updatedDate: Timestamp @default(expr: "request.time") createdBy: String @default(expr: "auth.uid")