I'm running a GAE Golang application that's working with datastore
. I have a struct which translates to a DB model on datastore
, and I have added a new field to the struct, call it NewField
(type string
)
Existing instances ("rows" in the DB) for this struct have this NewField
missing of course, which is expected.
I'm looking to create a query that will return all instances with where this NewField
is missing (the existing instances).
This is what I tried:
q := datastore.NewQuery("MyModel")
q = q.Filter("NewField =", "")
However this doesn't seem to work.
Any ideas on how to achieve this?