Im new to couchbase/n1ql, so sorry if this is a stupid question:
SELECT * FROM gs_staging UNNEST gs_staging.tracks AS track WHERE gs_staging.cbType="course" AND gs_staging.status="live" AND ANY val IN track.schedule SATISFIES val > 1542035900782 END ORDER BY gs_staging.created DESC LIMIT 4
This query returns the same document twice, not quite sure why. Also, the return format is
["gs_staging":{},"gs_staging":{}]
Is there a way to get rid of the keyspace wrapper?
Thanks and cheers,
Armin