Implement CXS GraphQL API
Add some example operators for String filters
Add the possibility to provide a "or" operator as a default for property matching using a seperate "properties_or" field
@@ -189,6 +189,14 @@ public class CXSGraphQLProviderImpl implements CXSGraphQLProvider, GraphQLQueryP
.name(propertyName + "_regexp")
.type(GraphQLString)
);
+ inputTypeBuilder.field(newInputObjectField()
+ .name(propertyName + "_startsWith")
+ .type(GraphQLString)
+ );
+ inputTypeBuilder.field(newInputObjectField()
+ .name(propertyName + "_contains")
+ .type(new GraphQLList(GraphQLString))
+ );
}
private void addBooleanFilters(String propertyName, GraphQLInputObjectType.Builder inputTypeBuilder) {
@@ -274,6 +282,10 @@ public class CXSGraphQLProviderImpl implements CXSGraphQLProvider, GraphQLQueryP
.name("properties")
.type(registeredInputTypes.get("CXS_EventPropertiesFilterInput"))
)
+ .field(newInputObjectField()
+ .name("properties_or")
+ .type(registeredInputTypes.get("CXS_EventPropertiesFilterInput"))
+ )
.field(newInputObjectField()
.name("eventOccurrence")
.type(registeredInputTypes.get(CXSEventOccurrenceFilterInput.class.getName()))
