No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    relationship in QTable

    Framework
    1
    1
    449
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dwms last edited by

      how to show the attribute of a relationship in the QTable when using the restfull pattern?

      {
      “data”: {
      “type”: “countries”,
      “id”: “2”,
      “attributes”: {
      “code”: “BE”,
      “name”: “Belgium”
      },
      “relationships”: {
      “currency”: {
      “data”: {
      “type”: “currencies”,
      “id”: “1”
      },
      “links”: {
      “self”: “/currencies/1”
      }
      },
      “cultures”: {
      “data”: [
      {
      “type”: “cultures”,
      “id”: “2”
      },
      {
      “type”: “cultures”,
      “id”: “3”
      }
      ],
      “links”: {
      “self”: “/cultures?country_id=2”
      }
      }
      },
      “links”: {
      “self”: “/countries/2”
      }
      },
      “included”: [
      {
      “type”: “currencies”,
      “id”: “1”,
      “attributes”: {
      “code”: “EUR”,
      “name”: “Euro”
      },
      “links”: {
      “self”: “/currencies/1”
      }
      },
      {
      “type”: “cultures”,
      “id”: “2”,
      “attributes”: {
      “code”: “nl-BE”,
      “name”: “Dutch (Belgium)”
      },
      “links”: {
      “self”: “/cultures/2”
      }
      },
      {
      “type”: “cultures”,
      “id”: “3”,
      “attributes”: {
      “code”: “fr-BE”,
      “name”: “French (Belgium)”
      },
      “links”: {
      “self”: “/cultures/3”
      }
      }
      ]
      }

      1 Reply Last reply Reply Quote 0
      • First post
        Last post