Taking into account the same schema posted above: ...
# spicedb
c
Taking into account the same schema posted above: is this the correct way to get all the viewers whom got that relation via group membership?
Copy code
typescript
    spicedbClient.lookupSubjects({
      consistency: {
        requirement: {
          fullyConsistent: true,
          oneofKind: 'fullyConsistent',
        },
      },
      resource: {
        objectId: promptId,
        objectType: 'prompt',
      },
      permission: 'viewer',
      subjectObjectType: 'group',
      optionalSubjectRelation: 'member',
      wildcardOption: v1.LookupSubjectsRequest_WildcardOption.EXCLUDE_WILDCARDS,
      optionalConcreteLimit: 0,
    })
currently, when a prompt is only shared with one group, this gives me an array of 2 elements where the group id is duplicated
3 Views