Skip to content

Commit

Permalink
Update Queries.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ARYANSHAH1567 authored Oct 18, 2024
1 parent 92a5e97 commit d347019
Showing 1 changed file with 58 additions and 2 deletions.
60 changes: 58 additions & 2 deletions src/GraphQl/Queries/Queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ export const EVENT_FEEDBACKS = gql`
}
`;

// Query to take the Organization with data
export const ORGANIZATIONS_LIST = gql`
// Query to take the Organization with data by creatorId
export const ORGANIZATIONS_LIST_BY_CREATOR_ID = gql`
query OrganizationsByCreator($creatorId: ID!) {
organizations(where: { creatorId: $creatorId }) {
_id
Expand Down Expand Up @@ -391,6 +391,62 @@ export const ORGANIZATIONS_LIST = gql`
}
`;

// Query to take the Organization with data
export const ORGANIZATIONS_LIST = gql`
query Organizations($id: ID!) {
organizations(id: $id) {
_id
image
creator {
firstName
lastName
email
}
name
description
address {
city
countryCode
dependentLocality
line1
line2
postalCode
sortingCode
state
}
userRegistrationRequired
visibleInSearch
members {
_id
firstName
lastName
email
}
admins {
_id
firstName
lastName
email
createdAt
}
membershipRequests {
_id
user {
firstName
lastName
email
}
}
blockedUsers {
_id
firstName
lastName
email
}
}
}
`;

// Query to take the Members of a particular organization
export const MEMBERS_LIST = gql`
query Organizations($id: ID!) {
Expand Down

0 comments on commit d347019

Please sign in to comment.