Graphql is built into Unomi and does not require a separate installation anymore.
You can then access the GraphQL endpoint at the following URL:
http://localhost:8181/graphql
The Graphql Playground is available at the following URL:
http://localhost:8181/graphql-ui
operation::
query findEvents($filter: CDP_EventFilterInput) {
cdp {
findEvents(filter: $filter) {
pageInfo {
hasNextPage
hasPreviousPage
}
edges {
cursor
node {
id
cdp_profileID {
client {
id
title
}
id
uri
}
__typename
}
}
}
}
}
variables::
{
"filter": {
"cdp_profileID_equals": ""
}
}
Segment query operation:
query findSegments($segmentFilter: CDP_SegmentFilterInput) {
cdp {
findSegments(filter: $segmentFilter) {
edges {
node {
id
name
view {
name
}
profiles {
profileIDs
}
}
}
}
}
}
Steps: