A Link records an external source related to a node, so the data can be traced back to where it came from. It has a url property and a note describing which source the link is from.
Nodes that can have links have a links property. In the other direction, each Link has an owner property pointing back to the node it belongs to, which can be one of several types (the LinkOwner union). Examples of common links:
| Node | Example note |
|---|---|
Person |
Facebook, X (Twitter) |
Membership |
ราชกิจจานุเบกษา (Royal Gazette), ข่าวอ้างอิง (news), แหล่งอ้างอิง (other) |
Bill |
ระบบสารสนเทศด้านนิติบัญญัติ (Legislative Information System) |
BillEnactEvent |
ราชกิจจานุเบกษา (Royal Gazette) |
VoteEvent |
ระบบฐานข้อมูลรายงานและบันทึกการประชุม (meeting records), ใบประมวลผลการลงมติ (vote result sheet) |
Organization, BillVoteEvent, BillMergeEvent, BillRejectEvent and BillRoyalAssentEvent can also have links.
For example, the links of the draft Budget Act 2021 (Section 3) vote point to its meeting record page and its vote result sheet file.
Link
VoteEvent
VoteEvent
การลงมติ
- id: fd854f98-a9c0-4ef2-b007-58821da695dc
- title: ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. 2564
- links:
- ระบบฐานข้อมูลรายงานและบันทึกการประชุม
- ใบประมวลผลการลงมติ
*Only showing nodes, properties, and relationships from the query see full schema
query VoteEvents { voteEvents(where: { id: { eq: "fd854f98-a9c0-4ef2-b007-58821da695dc" } }) { id title links { id url note } }}{ "data": { "voteEvents": [ { "__typename": "VoteEvent", "id": "fd854f98-a9c0-4ef2-b007-58821da695dc", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. 2564", "links": [ { "__typename": "Link", "id": "f5cb1516-a688-4f52-a3a2-ce6ee8b9afe3", "url": "https://msbis.parliament.go.th/ewtadmin/ewt/parliament_report/main_warehouse.php?m_id=4232", "note": "ระบบฐานข้อมูลรายงานและบันทึกการประชุม" }, { "__typename": "Link", "id": "b4d2c696-1958-40f6-bc6b-e152447c0eb8", "url": "https://msbis.parliament.go.th/ewtadmin/ewt/parliament_report/download/vote_detail/20200919110046A3.pdf", "note": "ใบประมวลผลการลงมติ" } ] } ] }}
