diff --git a/src/typeDefs/organization.ts b/src/typeDefs/organization.ts index 000f29bea..b6edb5fbc 100644 --- a/src/typeDefs/organization.ts +++ b/src/typeDefs/organization.ts @@ -39,6 +39,7 @@ export const organization = gql` isPublic: Boolean! visibleInSearch: Boolean! apiUrl: String + tags: [String!]! } input UpdateOrganizationInput { diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index 1b88ddf14..63ccb12f4 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -790,6 +790,7 @@ export type OrganizationInput = { isPublic: Scalars['Boolean']; location?: InputMaybe; name: Scalars['String']; + tags: Array; visibleInSearch: Scalars['Boolean']; }; diff --git a/tests/resolvers/Mutation/createOrganization.spec.ts b/tests/resolvers/Mutation/createOrganization.spec.ts index 5326ac0fc..58bb0cb74 100644 --- a/tests/resolvers/Mutation/createOrganization.spec.ts +++ b/tests/resolvers/Mutation/createOrganization.spec.ts @@ -37,6 +37,7 @@ describe("resolvers -> Mutation -> createOrganization", () => { visibleInSearch: true, apiUrl: "apiUrl", location: "location", + tags: ["tag1", "tag2"], }, }; @@ -59,6 +60,7 @@ describe("resolvers -> Mutation -> createOrganization", () => { visibleInSearch: true, apiUrl: "apiUrl", location: "location", + tags: ["tag1", "tag2"], }, }; @@ -83,6 +85,7 @@ describe("resolvers -> Mutation -> createOrganization", () => { creator: testUser._id, admins: [testUser._id], members: [testUser._id], + tags: ["tag1", "tag2"], }) );