# chatrooms

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/queries/chatrooms


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
chatrooms(
  eventId: String
  communityId: String
  filters: [ChatroomsFilterInput!]
  page: Int!
  pageSize: Int = 100
  sort: [Chat_ChannelSortInput!]
): [Chat_Channel!]!
```

### Arguments

#### [<code style={{ fontWeight: 'normal' }}>chatrooms.<b>eventId</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> If eventId is null, channels at community level will be fetched
> 

#### [<code style={{ fontWeight: 'normal' }}>chatrooms.<b>communityId</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Will be mandatory in the future - fetch channels at community level
> 

#### [<code style={{ fontWeight: 'normal' }}>chatrooms.<b>filters</b></code>](#)<Bullet />[`[ChatroomsFilterInput!]`](/organizer/content-api/graphql-event-api-schema/inputs/chatrooms-filter-input) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>chatrooms.<b>page</b></code>](#)<Bullet />[`Int!`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>chatrooms.<b>pageSize</b></code>](#)<Bullet />[`Int`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>chatrooms.<b>sort</b></code>](#)<Bullet />[`[Chat_ChannelSortInput!]`](/organizer/content-api/graphql-event-api-schema/inputs/chat-channel-sort-input) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

### Type

#### [`Chat_Channel`](/organizer/content-api/graphql-event-api-schema/objects/chat-channel) <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
>
