News for hackers. Stuff that matters.
Re:Launch HN: Twenty.com (YC S23) – Open-source CRM by solardev on Wednesday July 19, 2023 @04:43PM (#36793021)
How do you get data out of this? I see you mention GraphQL, but is there sample output? Are filters and searches etc. supported?

Also, can you write/mutate data via GraphQL too or is it read only?

Re:Launch HN: Twenty.com (YC S23) – Open-source CRM by charlesTwenty on Wednesday July 19, 2023 @04:59PM (#36793291)
Yes, we are providing a graphql API that you can find "documented" here: https://docs.twenty.com/graphql/

Right now, you need to provide a JWT token that you can get at login or refresh against a refresh_token (90days expiration). In the future, we plan to also support API keys which would ease a lot headless work.

Regarding filters and search, we have added filtering and search features on app.twenty.com. They are directly leveraging the graphql API.

GQL query example:

``` query ExampleQuery($where: CompanyWhereInput) { findManyCompany(where: $where) { id } } ```

GQL variables:

``` { "where": { "address": { "contains": "example" }, "accountOwner": { "is": { "id": { "equals": "user-id" } } } } } ```

Re:Launch HN: Twenty.com (YC S23) – Open-source CRM by charlesTwenty on Wednesday July 19, 2023 @05:00PM (#36793300)
We also plan to support CSV import and export
Re:Launch HN: Twenty.com (YC S23) – Open-source CRM by solardev on Thursday July 20, 2023 @02:57PM (#36805105)
This is awesome. Thank you!