N1Developer docsv1

TYPE REFERENCE

UserConnection

Referenced by 1 generated operations.

Documented fields

  • edges[UserEdge!]!Required

    The rows on this page, in order.

    Example: [{"cursor":"WyJhc2hhIGRlbW8iLCIwMTkyZjBjMS0wMDAwLTcwMDAtODAwMC0wMDAwMDAwMDAwYTEiXQ","node":{"id":"0192f0c1-0000-7000-8000-0000000000a1","name":"Asha Demo","email":"asha@demo-shop.example","phone":"+91 90000 00001","role":"OWNER","status":"ACTIVE","lastLoginAt":"2026-10-12T04:30:00.000Z"}},{"cursor":"WyJiYWxhIGRlbW8iLCIwMTkyZjBjMS0wMDAwLTcwMDAtODAwMC0wMDAwMDAwMDAwYTIiXQ","node":{"id":"0192f0c1-0000-7000-8000-0000000000a2","name":"Bala Demo","email":"bala@demo-shop.example","phone":"+91 90000 00002","role":"ADMIN","status":"ACTIVE","lastLoginAt":"2026-10-13T05:30:00.000Z"}},{"cursor":"WyJjaGl0cmEgZGVtbyIsIjAxOTJmMGMxLTAwMDAtNzAwMC04MDAwLTAwMDAwMDAwMDBhMyJd","node":{"id":"0192f0c1-0000-7000-8000-0000000000a3","name":"Chitra Demo","email":"chitra@demo-shop.example","phone":"+91 90000 00003","role":"ACCOUNTANT","status":"ACTIVE","lastLoginAt":"2026-10-14T06:30:00.000Z"}}]

    Show children
    • cursorString!Required

      Opaque position of this row in the list.

      Example: "WyJhc2hhIGRlbW8iLCIwMTkyZjBjMS0wMDAwLTcwMDAtODAwMC0wMDAwMDAwMDAwYTEiXQ"

    • nodeUser!Required

      The User.

      Example: {"id":"0192f0c1-0000-7000-8000-0000000000a1","name":"Asha Demo","email":"asha@demo-shop.example","phone":"+91 90000 00001","role":"OWNER","status":"ACTIVE","lastLoginAt":"2026-10-12T04:30:00.000Z"}

      Show children
      • activityActivityConnection!Required

        Newest activity first, cursor paged.

        Field arguments
        • afterStringOptional

          endCursor of the previous page.

        • beforeStringOptional

          startCursor of the next page, when paging backwards.

        • firstIntOptional

          Page size, 1–100 (default 20).

        • lastIntOptional

          Page size when paging backwards, 1–100.

        Show children
        • edges[ActivityEdge!]!Required

          The rows on this page, in order.

        • pageInfoPageInfo!Required

          Whether more pages exist, and the cursors to reach them.

        • totalCountInt!Required

          All rows matching the filter and search, not just this page.

      • addressString!Required

        address from the user profile.

      • cityString!Required

        city from the user profile.

      • countryString!Required

        country from the user profile.

      • createdAtString!Required

        UTC time the user was added.

      • departmentString!Required

        department from the user profile.

      • designationString!Required

        designation from the user profile.

      • documents[AppFileReference!]!Required

        At most 20 document references.

        Show children
        • idID!Required

          File id; obtain authorised download URL from files API.

        • kindStringOptional

          Document category.

        • nameString!Required

          Display filename.

        • sizeBytesFloat!Required

          Size in bytes, safe integer.

      • emailStringOptional

        Sign-in email, if any.

        Example: "asha@demo-shop.example"

      • hasPasswordBoolean!Required

        Whether a password has been set.

      • idID!Required

        Stable id (UUIDv7).

        Example: "0192f0c1-0000-7000-8000-0000000000a1"

      • joinedAtString!Required

        Membership business date, YYYY-MM-DD.

      • lastLoginAtStringOptional

        UTC time of the last sign-in; null if never.

        Example: "2026-10-12T04:30:00.000Z"

      • nameString!Required

        Full name.

        Example: "Asha Demo"

      • permissionsAppPermissions!Required

        Role-capped app controls.

        Show children
        • exportReportsBoolean!Required

          May export reports.

        • manageUsersBoolean!Required

          May manage users.

        • viewOrdersBoolean!Required

          May view orders.

      • phoneStringOptional

        Sign-in phone, if any.

        Example: "+91 90000 00001"

      • photoAppFileReferenceOptional

        Profile photo reference.

        Show children
        • idID!Required

          File id; obtain authorised download URL from files API.

        • kindStringOptional

          Document category.

        • nameString!Required

          Display filename.

        • sizeBytesFloat!Required

          Size in bytes, safe integer.

      • pinCodeString!Required

        pinCode from the user profile.

      • roleRoleName!Required

        Their role in this shop.

        Example: "OWNER"

        • ACCOUNTANTCustomers, invoices and payments.
        • ADMINManages people, settings and customers on the owner’s behalf.
        • OPERATORRuns machines and logs production.
        • OWNERRuns the shop. Everything, including who else can sign in.
        • QCInspects parts and records results.
        • SUPERVISORPlans and watches the shop floor.
      • stateString!Required

        state from the user profile.

      • statusUserStatus!Required

        Whether they can sign in.

        Example: "ACTIVE"

        • ACTIVECan sign in.
        • INACTIVECannot sign in; their sessions were revoked. History stays.
        • INVITEDInvitation pending.
        • SUSPENDEDAccess suspended; history retained.
  • pageInfoPageInfo!Required

    Whether more pages exist, and the cursors to reach them.

    Example: {"hasNextPage":true,"endCursor":"WyJjaGl0cmEgZGVtbyIsIjAxOTJmMGMxLTAwMDAtNzAwMC04MDAwLTAwMDAwMDAwMDBhMyJd"}

    Show children
    • endCursorStringOptional

      Cursor of the last row; pass it as after to get the next page. Null when the page is empty.

      Example: "WyJjaGl0cmEgZGVtbyIsIjAxOTJmMGMxLTAwMDAtNzAwMC04MDAwLTAwMDAwMDAwMDBhMyJd"

    • hasNextPageBoolean!Required

      Whether another page follows this one.

      Example: true

    • hasPreviousPageBoolean!Required

      Whether another page comes before this one.

    • startCursorStringOptional

      Cursor of the first row; pass it as before to page backwards. Null when the page is empty.

  • totalCountInt!Required

    All rows matching the filter and search, not just this page.

    Example: 8

Used by

Search documentation

Search operations, types and errors from the generated contract.