Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Feat graphql #287

Merged
merged 116 commits into from
Dec 27, 2022
Merged
Show file tree
Hide file tree
Changes from 113 commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
9ebdf1a
WIP graphql guide
abnegate Jul 20, 2022
a958709
Add graphql to sidebar
abnegate Jul 21, 2022
49c6b24
Request/response type tables, examples array batching, SDK examples
abnegate Jul 21, 2022
71f67db
Test fixes
abnegate Jul 21, 2022
5520318
Remove emphasis
abnegate Jul 21, 2022
ba69edf
Merge remote-tracking branch 'origin/main' into feat-graphql
abnegate Oct 7, 2022
143f8d9
Merge remote-tracking branch 'origin/main' into feat-graphql
abnegate Oct 12, 2022
d6ee138
Comment out databases advanced integration
abnegate Oct 12, 2022
2ec082c
Self review
abnegate Oct 12, 2022
673d560
Simplify batch example
abnegate Oct 12, 2022
23cf6cd
Simplify SDK examples
abnegate Oct 12, 2022
0b22099
Escape SDK example multi-line strings
abnegate Oct 12, 2022
792ecb6
Updates REST API category to References
abnegate Oct 19, 2022
3bdd6ab
Add APIs category for rest/graphql/realtime
abnegate Oct 19, 2022
9bf3f7e
Add common header
abnegate Oct 19, 2022
82e8ef9
Add explicit authentication block for realtime
abnegate Oct 19, 2022
ad1775f
Add GraphQL examples to auth guide
abnegate Oct 20, 2022
2766a37
Add details for rest doc
abnegate Oct 20, 2022
97b7ae8
Check isSDK before adding postfix to integration select
abnegate Oct 20, 2022
caac669
Check isSDK before adding postfix to prism language label
abnegate Oct 20, 2022
710abb4
Fix SDK labels
abnegate Oct 20, 2022
575d925
Add GraphQL examples for remaining guides
abnegate Oct 25, 2022
6222d12
Merge remote-tracking branch 'origin/main' into feat-graphql
abnegate Oct 26, 2022
68964cd
Update url -> route class
abnegate Oct 26, 2022
d4c4d9c
Add seperator between SDK an non-SDK languages
abnegate Oct 26, 2022
5f0b18c
Add skipLanguage function at top level
abnegate Oct 26, 2022
357ebb9
Fix extra dividers
abnegate Oct 26, 2022
a1e1b87
Add full graphql request example to storage guide
abnegate Oct 26, 2022
d049544
Merge remote-tracking branch 'origin/main' into feat-graphql
abnegate Oct 26, 2022
eac7677
Add auth examples to REST page
Nov 2, 2022
5562751
Add multipart file handling
Nov 8, 2022
f37c549
add formdata format
Nov 8, 2022
8d08e41
Add REST API example using fetch
Nov 9, 2022
7c753f8
Let's just use raw HTTP requests as examples
Nov 10, 2022
574adb8
permission magic strings
Nov 11, 2022
341d8d4
Added more magic strings
Nov 11, 2022
bf03417
Added Open API specs
Nov 11, 2022
6219a22
check formatting
Nov 11, 2022
878fd46
Cleaned up empty cells for review
Nov 11, 2022
62dd93d
Fix HTTP formatting
Nov 11, 2022
94b006f
Update app/views/docs/rest.phtml
gewenyu99 Nov 15, 2022
d839c5a
Update app/views/docs/rest.phtml
gewenyu99 Nov 15, 2022
a77bccf
Update app/views/docs/rest.phtml
gewenyu99 Nov 15, 2022
356d1d2
Update app/views/docs/rest.phtml
gewenyu99 Nov 15, 2022
5662348
Fix permission field description
Nov 15, 2022
b87b47a
Adds missing headers and query information
Nov 18, 2022
228277e
Added membership string to REST docs
Nov 21, 2022
be72373
Update app/views/docs/rest.phtml
gewenyu99 Nov 24, 2022
7666746
Update app/views/docs/rest.phtml
gewenyu99 Nov 24, 2022
4f93fea
Update app/views/docs/rest.phtml
gewenyu99 Nov 24, 2022
6d64a04
Update app/views/docs/rest.phtml
gewenyu99 Nov 24, 2022
675cc36
Update app/views/docs/rest.phtml
gewenyu99 Nov 24, 2022
1c43c6b
Update app/views/docs/rest.phtml
gewenyu99 Nov 24, 2022
6bb5629
Addes best practice note and fixes permission string format
Nov 24, 2022
9bc0d82
Update storage example
abnegate Dec 8, 2022
404dc12
Merge remote-tracking branch 'origin/main' into feat-graphql
abnegate Dec 8, 2022
d43eed2
Update app/views/docs/graphql.phtml
abnegate Dec 15, 2022
d4633ac
Review updates
abnegate Dec 15, 2022
c5660a5
Merge branch 'feat-graphql' of github.com:appwrite/docs into feat-gra…
abnegate Dec 15, 2022
ce91123
Check if function is declared before declaring
abnegate Dec 19, 2022
5016a3f
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
f6b9799
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
d5d626e
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
01beb69
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
005f27e
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
cd3ea22
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
d42c4d2
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
d641d13
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
d5a522e
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
0aa41fa
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
4491d00
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
1583b8e
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
bfe5e45
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
0efe403
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
e8adca2
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
8c2d227
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
220bdb1
Update app/views/docs/rest.phtml
gewenyu99 Dec 19, 2022
cd349da
Test required pill, fix formating suggestions
gewenyu99 Dec 19, 2022
078e023
add cookie examples
Dec 19, 2022
3d64491
Removes unnecessary space in session examples
Dec 19, 2022
f457071
Check status in own column
Dec 19, 2022
10cb24c
updates all requried tags to be pills
Dec 19, 2022
8e81b36
Update app/views/docs/rest.phtml
gewenyu99 Dec 20, 2022
6b2f038
Tag color change, add link to headers
Dec 20, 2022
aa50c66
add JWT to docs
Dec 20, 2022
bbcfe3b
Fixes accound endpoint
Dec 20, 2022
ac49a79
Add link for create endpoints
Dec 20, 2022
adc194d
Ran through grammarly for double checks
Dec 20, 2022
4a0ba0c
Add space in request formatting to fix highlighting issue
Dec 20, 2022
8f343ca
Formatting
abnegate Dec 22, 2022
d4b735b
Remove extra space in request line
abnegate Dec 22, 2022
7f3161d
Remove extra space in request line
abnegate Dec 22, 2022
676b5f9
Truncate cookies
abnegate Dec 22, 2022
c24c88c
Merge pull request #297 from appwrite/doc-rest-api
abnegate Dec 22, 2022
26a63d0
Split examples into multi line
abnegate Dec 22, 2022
ad67edf
Remove optional headers
abnegate Dec 22, 2022
bafd738
Update app/views/docs/graphql.phtml
abnegate Dec 22, 2022
d1be4fb
Update app/views/docs/rest.phtml
abnegate Dec 22, 2022
8577161
Add code tag to appropriate elements
Dec 22, 2022
6632905
Merge pull request #308 from appwrite/fix-code-tags
abnegate Dec 23, 2022
02576d3
Review updates
abnegate Dec 23, 2022
adae840
Update app/views/docs/graphql.phtml
eldadfux Dec 26, 2022
19ed7cc
Update app/views/docs/rest.phtml
eldadfux Dec 26, 2022
79a931e
Update app/views/docs/graphql.phtml
eldadfux Dec 26, 2022
159d369
Update app/views/docs/graphql.phtml
eldadfux Dec 26, 2022
3b14046
Update app/views/docs/realtime.phtml
eldadfux Dec 26, 2022
85036eb
Update app/views/docs/graphql.phtml
eldadfux Dec 26, 2022
c463b6f
Update app/views/docs/graphql.phtml
eldadfux Dec 26, 2022
618ee60
Update app/views/docs/graphql.phtml
eldadfux Dec 26, 2022
6fdd2f8
Hide unavailable options in version select
Dec 26, 2022
c58f129
Merge pull request #309 from appwrite/fix-version-select
eldadfux Dec 26, 2022
b35b81a
document session limit
gewenyu99 Dec 27, 2022
463624f
Update formatting for session limits
gewenyu99 Dec 27, 2022
9bab180
Update app/views/docs/authentication.phtml
Meldiron Dec 27, 2022
206ae49
Update app/views/docs/authentication.phtml
Meldiron Dec 27, 2022
872f232
Update app/views/docs/storage.phtml
Meldiron Dec 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
296 changes: 192 additions & 104 deletions app/views/docs/authentication.phtml

Large diffs are not rendered by default.

93 changes: 93 additions & 0 deletions app/views/docs/databases.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,27 @@ func main() async throws {
} catch {
print(error.localizedDescription)
}
}</code></pre>
</div>
</li>
<li>
<h3>GraphQL</h3>
<div class="ide" data-lang="graphql" data-lang-label="GraphQL">
<pre class="line-numbers"><code class="prism language-graphql" data-prism>mutation {
databasesCreateDocument(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]",
documentId: "[DOCUMENT_ID]",
data: "{}"
) {
id
collectionId
databaseId
createdAt
updatedAt
permissions
data
}
}</code></pre>
</div>
</li>
Expand Down Expand Up @@ -322,6 +343,24 @@ func main() async throws{
} catch {
print(error.localizedDescription)
}
}</code></pre>
</div>
</li>
<li>
<h3>GraphQL</h3>
<div class="ide" data-lang="graphql" data-lang-label="GraphQL">
<pre class="line-numbers"><code class="prism language-graphql" data-prism>query {
databasesListDocuments(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]"
queries: ["equal(\"title\", [\"Avatar\"])"]
) {
total
documents {
id
data
}
}
}</code></pre>
</div>
</li>
Expand Down Expand Up @@ -509,6 +548,24 @@ func main() async throws {
} catch {
print(error.localizedDescription)
}
}</code></pre>
</div>
</li>
<li>
<h3>GraphQL</h3>
<div class="ide" data-lang="graphql" data-lang-label="GraphQL">
<pre class="line-numbers"><code class="prism language-graphql" data-prism>query {
databasesListDocuments(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]"
queries: ["equal(\"title\", [\"Avatar\", \"Lord of the Rings\"])", "greaterThan(\"year\", 1999)"]
) {
total
documents {
id
data
}
}
}</code></pre>
</div>
</li>
Expand Down Expand Up @@ -651,6 +708,24 @@ func main() async throws {
} catch {
print(error.localizedDescription)
}
}</code></pre>
</div>
</li>
<li>
<h3>GraphQL</h3>
<div class="ide" data-lang="graphql" data-lang-label="GraphQL">
<pre class="line-numbers"><code class="prism language-graphql" data-prism>query {
databasesListDocuments(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]"
queries: ["orderAsc(\"title\")"]
) {
total
documents {
id
data
}
}
}</code></pre>
</div>
</li>
Expand Down Expand Up @@ -760,6 +835,24 @@ func main() async throws {
} catch {
print(error.localizedDescription)
}
}</code></pre>
</div>
</li>
<li>
<h3>GraphQL</h3>
<div class="ide" data-lang="graphql" data-lang-label="GraphQL">
<pre class="line-numbers"><code class="prism language-graphql" data-prism>query {
databasesListDocuments(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]"
queries: ["orderAsc(\"title\")", "orderDesc(\"year\")"]
) {
total
documents {
id
data
}
}
}</code></pre>
</div>
</li>
Expand Down
48 changes: 32 additions & 16 deletions app/views/docs/functions.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,26 @@ void main() async {
final execution = await functions.createExecution(
functionId: '[FUNCTION_ID]'
);
}</code></pre>
</div>
</li>
<li>
<h3>Android</h3>

<div class="ide margin-bottom" data-lang="kotlin" data-lang-label="Android SDK">
<pre class="line-numbers"><code class="prism language-kotlin" data-prism>import io.appwrite.Client
import io.appwrite.services.Functions

suspend fun main() {
val client = Client(applicationContext)
.setEndpoint("https://[HOSTNAME_OR_IP]/v1")
.setProject("[PROJECT_ID]")

val functions = Functions(client)

val execution = functions.createExecution(
functionId = "[FUNCTION_ID]"
)
}</code></pre>
</div>
</li>
Expand All @@ -597,22 +617,18 @@ func main() async throws {
</div>
</li>
<li>
<h3>Android</h3>

<div class="ide margin-bottom" data-lang="kotlin" data-lang-label="Android SDK">
<pre class="line-numbers"><code class="prism language-kotlin" data-prism>import io.appwrite.Client
import io.appwrite.services.Functions

suspend fun main() {
val client = Client(applicationContext)
.setEndpoint("https://[HOSTNAME_OR_IP]/v1")
.setProject("[PROJECT_ID]")

val functions = Functions(client)

val execution = functions.createExecution(
functionId = "[FUNCTION_ID]"
)
<h3>GraphQL</h3>

<div class="ide margin-bottom" data-lang="graphql" data-lang-label="GraphQL">
<pre class="line-numbers"><code class="prism language-graphql" data-prism>mutation {
functionsCreateExecution(functionId: "[FUNCTION_ID]") {
id
statusCode
response
stdout
stderr
duration
}
}</code></pre>
</div>
</li>
Expand Down
Loading