1

I want to get object, which listfield contains 'foo', 'bar' and 'foobar' strings. Can I do query like this

SELECT * FROM Entity WHERE listfield = 'foo' AND listfield = 'bar' AND listfiled = 'foobar'

where listfield = StringListProperty() ?

Dan McGrath
  • 41,220
  • 11
  • 99
  • 130
gordon-quad
  • 734
  • 5
  • 15

2 Answers2

2

One thing to note, make sure that your index.yaml file contains all the index permutations you require. Your query as above would have an index like this:

  • kind: Entity properties:
    • name: xyz
    • name: listfield
    • name: listfield
    • name: listfield
jonmiddleton
  • 1,122
  • 14
  • 16
-1

Yes, you can do that.

Nick Johnson
  • 100,655
  • 16
  • 128
  • 198