Constructing good filters using Filter

#1

The Filter object provides safe and efficient filter construction. For example, use Filter.eq(“id”, “myId”).and.gt(“myDate”, new DateTime(“2000-01-01”)).toString(). The string constructed by the Filter may be used in calls like “fetch” and “evaluate”

1 Like

#2

This is REALLY critical as the Filter utility also helps guard against SQL injection attacks

0 Likes

#3

More detailed explanation here:

0 Likes

#4

@matt where do I see documentation for Filter? like different options that I can use with Filter

1 Like

#5

@venkata.paruchuri With the rest of the JS documentation:

Look for C3.util.Filter

1 Like

#6
1 Like