gojsonq icon indicating copy to clipboard operation
gojsonq copied to clipboard

Possible query

Open AchimGrolimund opened this issue 3 years ago • 0 comments

is it possible to compare a query with 2 keys? I tried 2 3 tests, but it didn't work for me.

{
    "authorizedWriters": {
        "teams": [],
        "users": []
    },
    "created": 1627654462505,
    "creator": "E7jJBMMAEAA",
    "dashboards": ["E7jJCz8AEAA"],
    "lastUpdated": 1627654462744,
    "lastUpdatedBy": "E7jJBMMAEAA",
    "teams": []
}

What i try to do:

// give me all objects which have a different updater like creator
// if creator == lastUpdatedBy

json:= gojsonq.New().JSONString(json).From("results").Select("dashboardId","name").Where(.....?????)

greetings

AchimGrolimund avatar Aug 03 '21 05:08 AchimGrolimund