mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
docs: misc updates
- readd first graphql query page as it is a good link to share from external resources (like console) - add link to changelog for 2.0 - update SQL server support comments GitOrigin-RevId: 8f7baeccca38fcd645638d2832b85fcad53dabe5
This commit is contained in:
parent
66fb02b51f
commit
6fb181a4ee
@ -19,8 +19,7 @@ Hasura allows connecting to a SQL Server database and build an GraphQL API based
|
||||
|
||||
.. admonition:: Supported from
|
||||
|
||||
Hasura 2.0 onwards
|
||||
|
||||
Hasura GraphQL engine ``v2.0.0-alpha.2`` onwards
|
||||
|
||||
.. admonition:: Supported SQL Server versions
|
||||
|
||||
|
@ -52,7 +52,7 @@ contains all installation manifests required to deploy Hasura anywhere. Get the
|
||||
# or run
|
||||
curl https://raw.githubusercontent.com/hasura/graphql-engine/master/install-manifests/docker-compose-v2.0.0/docker-compose.yaml -o docker-compose.yml
|
||||
|
||||
See `changelog <https://github.com/hasura/graphql-engine/releases/tag/v2.0.0-alpha.1>`__
|
||||
See the `changelog <https://github.com/hasura/graphql-engine/releases>`__
|
||||
|
||||
Step 2: Run Hasura GraphQL engine & Postgres
|
||||
--------------------------------------------
|
||||
|
55
docs/graphql/core/getting-started/first-graphql-query.rst
Normal file
55
docs/graphql/core/getting-started/first-graphql-query.rst
Normal file
@ -0,0 +1,55 @@
|
||||
.. meta::
|
||||
:description: Make a first GraphQL query with Hasura
|
||||
:keywords: hasura, docs, start, query, graphql
|
||||
|
||||
.. _first_graphql_query:
|
||||
|
||||
Making your first GraphQL query
|
||||
===============================
|
||||
|
||||
.. contents:: Table of contents
|
||||
:backlinks: none
|
||||
:depth: 1
|
||||
:local:
|
||||
|
||||
Introduction
|
||||
------------
|
||||
|
||||
Let's create a sample table and query data from it using the Hasura console, a UI tool meant for doing exactly this:
|
||||
|
||||
Create a table
|
||||
--------------
|
||||
|
||||
Head to the Hasura console, navigate to ``Data -> Create table`` and create a sample table called ``profiles`` with
|
||||
the following columns:
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
profiles (
|
||||
id SERIAL PRIMARY KEY, -- serial -> auto-incrementing integer
|
||||
name TEXT
|
||||
)
|
||||
|
||||
.. thumbnail:: /img/graphql/core/getting-started/create-profile-table.png
|
||||
:alt: Create a table
|
||||
|
||||
Now, insert some sample data into the table using the ``Insert Row`` tab of the ``profiles`` table.
|
||||
|
||||
Try out a query
|
||||
---------------
|
||||
|
||||
Head to the ``GraphiQL`` tab in the console and try running the following query:
|
||||
|
||||
.. code-block:: graphql
|
||||
|
||||
query {
|
||||
profiles {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
|
||||
You'll see that you get all the inserted data!
|
||||
|
||||
.. thumbnail:: /img/graphql/core/getting-started/profile-query.png
|
||||
:alt: Try out a query
|
@ -44,7 +44,7 @@ Get started using an existing database
|
||||
|
||||
.. admonition:: MS SQL Server support (alpha)
|
||||
|
||||
Hasura GraphQL engine supports SQL server 2016 and above. Head to :ref:`this guide <database_ms-sql-server>`
|
||||
Hasura GraphQL engine supports **SQL server 2016 and above**. Head to :ref:`this guide <database_ms-sql-server>`
|
||||
to get started with SQL Server.
|
||||
|
||||
.. admonition:: MySQL support (alpha)
|
||||
@ -59,4 +59,5 @@ Get started using an existing database
|
||||
Hasura Cloud quickstart <https://hasura.io/docs/1.0/graphql/cloud/getting-started/index.html>
|
||||
Docker quickstart <docker-simple>
|
||||
Using an existing database <using-existing-database>
|
||||
Making your first GraphQL query <first-graphql-query>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user