graphiti 2.0.0.beta.6 → 2.0.0.beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/.git-blame-ignore-revs +2 -0
  3. data/.github/workflows/ci.yml +55 -3
  4. data/.github/workflows/docs.yml +1 -1
  5. data/.github/workflows/notify-example-app.yml +18 -0
  6. data/.gitignore +2 -0
  7. data/.standard.yml +6 -0
  8. data/CHANGELOG.md +54 -0
  9. data/CONTRIBUTING.md +3 -1
  10. data/README.md +13 -206
  11. data/Rakefile +6 -3
  12. data/UPGRADING.md +1 -1
  13. data/graphiti.gemspec +8 -4
  14. data/lib/generators/graphiti/generator_mixin.rb +1 -1
  15. data/lib/generators/graphiti/install_generator.rb +1 -2
  16. data/lib/generators/graphiti/resource_generator.rb +6 -3
  17. data/lib/generators/graphiti/templates/application_resource.rb.erb +19 -0
  18. data/lib/generators/graphiti/templates/controller.rb.erb +26 -8
  19. data/lib/generators/graphiti/templates/index_request_spec.rb.erb +2 -2
  20. data/lib/generators/graphiti/templates/resource_reads_spec.rb.erb +4 -4
  21. data/lib/generators/graphiti/templates/show_request_spec.rb.erb +2 -2
  22. data/lib/graphiti/audit/report.rb +6 -6
  23. data/lib/graphiti/audit.rb +3 -4
  24. data/lib/graphiti/delegates/pagination.rb +2 -2
  25. data/lib/graphiti/deserializer.rb +3 -3
  26. data/lib/graphiti/errors.rb +6 -6
  27. data/lib/graphiti/extensions/temp_id.rb +1 -1
  28. data/lib/graphiti/query.rb +27 -8
  29. data/lib/graphiti/rails/context.rb +2 -1
  30. data/lib/graphiti/rails/controller.rb +3 -0
  31. data/lib/graphiti/rails/debugging.rb +1 -1
  32. data/lib/graphiti/rails/responders.rb +2 -1
  33. data/lib/graphiti/resource/configuration.rb +1 -0
  34. data/lib/graphiti/resource/dsl.rb +2 -2
  35. data/lib/graphiti/resource/interface.rb +3 -3
  36. data/lib/graphiti/resource/links.rb +1 -1
  37. data/lib/graphiti/resource/persistence.rb +1 -1
  38. data/lib/graphiti/resource/polymorphism.rb +1 -1
  39. data/lib/graphiti/resource.rb +2 -2
  40. data/lib/graphiti/resource_proxy.rb +0 -1
  41. data/lib/graphiti/runner.rb +8 -3
  42. data/lib/graphiti/scope.rb +13 -0
  43. data/lib/graphiti/scoping/filter.rb +5 -3
  44. data/lib/graphiti/scoping/paginate.rb +1 -1
  45. data/lib/graphiti/scoping/sort.rb +1 -1
  46. data/lib/graphiti/sideload/has_many.rb +1 -1
  47. data/lib/graphiti/spec_helpers/errors_proxy.rb +1 -1
  48. data/lib/graphiti/spec_helpers/matchers.rb +1 -1
  49. data/lib/graphiti/spec_helpers.rb +5 -0
  50. data/lib/graphiti/types.rb +5 -1
  51. data/lib/graphiti/util/cache_debug.rb +3 -3
  52. data/lib/graphiti/util/hash.rb +1 -1
  53. data/lib/graphiti/util/persistence.rb +6 -6
  54. data/lib/graphiti/util/serializer_relationships.rb +1 -1
  55. data/lib/graphiti/version.rb +1 -1
  56. data/lib/tasks/graphiti.rake +1 -1
  57. data/package.json +1 -0
  58. metadata +31 -197
  59. data/docs/concepts/backends-and-models.md +0 -122
  60. data/docs/concepts/endpoints.md +0 -183
  61. data/docs/concepts/links.md +0 -212
  62. data/docs/concepts/overview.md +0 -80
  63. data/docs/concepts/persisting.md +0 -376
  64. data/docs/concepts/relationships.md +0 -627
  65. data/docs/concepts/resources.md +0 -677
  66. data/docs/getting-started/first-api.md +0 -289
  67. data/docs/getting-started/installation.md +0 -185
  68. data/docs/intro.md +0 -307
  69. data/docs/js/authentication.md +0 -63
  70. data/docs/js/ddau.md +0 -20
  71. data/docs/js/extra-params.md +0 -41
  72. data/docs/js/index.md +0 -112
  73. data/docs/js/installation.md +0 -120
  74. data/docs/js/middleware.md +0 -72
  75. data/docs/js/models.md +0 -202
  76. data/docs/js/reads.md +0 -494
  77. data/docs/js/state-syncing.md +0 -100
  78. data/docs/js/writes.md +0 -373
  79. data/docs/reference/vandal.md +0 -63
  80. data/docs/reference/why.md +0 -13
  81. data/docs/topics/authorization.md +0 -155
  82. data/docs/topics/caching.md +0 -55
  83. data/docs/topics/customizing-sideloads.md +0 -156
  84. data/docs/topics/debugging.md +0 -242
  85. data/docs/topics/error-handling.md +0 -210
  86. data/docs/topics/etags.md +0 -46
  87. data/docs/topics/hopping-relationships.md +0 -149
  88. data/docs/topics/json-attributes.md +0 -77
  89. data/docs/topics/openstruct-models.md +0 -50
  90. data/docs/topics/remote-resources.md +0 -291
  91. data/docs/topics/testing.md +0 -894
  92. data/docs/topics/without-activerecord.md +0 -324
  93. data/docs/tutorial/index.md +0 -58
  94. data/docs/tutorial/step_0.md +0 -107
  95. data/docs/tutorial/step_1.md +0 -199
  96. data/docs/tutorial/step_2.md +0 -312
  97. data/docs/tutorial/step_3.md +0 -142
  98. data/docs/tutorial/step_4.md +0 -135
  99. data/docs/tutorial/step_5.md +0 -69
  100. data/docs/tutorial/step_6.md +0 -82
  101. data/docs/tutorial/step_7.md +0 -205
  102. data/docs/tutorial/step_8.md +0 -128
  103. data/docs/tutorial/step_9.md +0 -171
  104. data/docs/upgrading.md +0 -266
  105. data/website/.gitignore +0 -20
  106. data/website/README.md +0 -43
  107. data/website/docusaurus.config.js +0 -197
  108. data/website/package-lock.json +0 -19474
  109. data/website/package.json +0 -46
  110. data/website/sidebars.js +0 -82
  111. data/website/src/css/custom.css +0 -85
  112. data/website/src/pages/markdown-page.mdx +0 -7
  113. data/website/static/.nojekyll +0 -0
  114. data/website/static/1.13/2019/03/31/graphiti-1-0.html +0 -205
  115. data/website/static/1.13/2019/05/08/graphiti-1-1.html +0 -212
  116. data/website/static/1.13/2019/05/20/graphiti-1-2.html +0 -214
  117. data/website/static/1.13/2019/10/14/tutorial.html +0 -198
  118. data/website/static/1.13/CNAME +0 -1
  119. data/website/static/1.13/README.md +0 -16
  120. data/website/static/1.13/assets/css/syntax.css +0 -60
  121. data/website/static/1.13/assets/favicons/android-chrome-192x192.png +0 -0
  122. data/website/static/1.13/assets/favicons/android-chrome-256x256.png +0 -0
  123. data/website/static/1.13/assets/favicons/apple-touch-icon.png +0 -0
  124. data/website/static/1.13/assets/favicons/browserconfig.xml +0 -9
  125. data/website/static/1.13/assets/favicons/favicon-16x16.png +0 -0
  126. data/website/static/1.13/assets/favicons/favicon-32x32.png +0 -0
  127. data/website/static/1.13/assets/favicons/favicon.ico +0 -0
  128. data/website/static/1.13/assets/favicons/mstile-150x150.png +0 -0
  129. data/website/static/1.13/assets/favicons/safari-pinned-tab.svg +0 -1
  130. data/website/static/1.13/assets/favicons/site.webmanifest +0 -19
  131. data/website/static/1.13/assets/img/backend.gif +0 -0
  132. data/website/static/1.13/assets/img/conformity.png +0 -0
  133. data/website/static/1.13/assets/img/error_payload.png +0 -0
  134. data/website/static/1.13/assets/img/fancy-cushion.png +0 -0
  135. data/website/static/1.13/assets/img/gh.png +0 -0
  136. data/website/static/1.13/assets/img/home-bg.jpg +0 -0
  137. data/website/static/1.13/assets/img/lifecycle.gif +0 -0
  138. data/website/static/1.13/assets/img/logo-500.png +0 -0
  139. data/website/static/1.13/assets/img/logo.png +0 -0
  140. data/website/static/1.13/assets/img/love-graffiti.jpg +0 -0
  141. data/website/static/1.13/assets/img/meta_total_count.png +0 -0
  142. data/website/static/1.13/assets/img/persist.jpg +0 -0
  143. data/website/static/1.13/assets/img/resource.gif +0 -0
  144. data/website/static/1.13/assets/img/rest-graffiti.jpg +0 -0
  145. data/website/static/1.13/assets/img/rest1.gif +0 -0
  146. data/website/static/1.13/assets/img/rest2.gif +0 -0
  147. data/website/static/1.13/assets/img/rest3.gif +0 -0
  148. data/website/static/1.13/assets/img/rethink-rest-graffiti.jpg +0 -0
  149. data/website/static/1.13/assets/img/sunrise.png +0 -0
  150. data/website/static/1.13/assets/img/why.png +0 -0
  151. data/website/static/1.13/assets/js/highlight.pack.js +0 -2
  152. data/website/static/1.13/assets/main.css +0 -15518
  153. data/website/static/1.13/assets/main.css.map +0 -1
  154. data/website/static/1.13/bin/bundle +0 -109
  155. data/website/static/1.13/bin/jekyll +0 -27
  156. data/website/static/1.13/bin/kramdown +0 -27
  157. data/website/static/1.13/bin/listen +0 -27
  158. data/website/static/1.13/bin/rake +0 -27
  159. data/website/static/1.13/bin/rougify +0 -27
  160. data/website/static/1.13/bin/safe_yaml +0 -27
  161. data/website/static/1.13/bin/sass +0 -27
  162. data/website/static/1.13/bin/sass-convert +0 -27
  163. data/website/static/1.13/bin/scss +0 -27
  164. data/website/static/1.13/blog.html +0 -259
  165. data/website/static/1.13/cheatsheet.html +0 -316
  166. data/website/static/1.13/cookbooks/authorization.md +0 -0
  167. data/website/static/1.13/cookbooks/caching.md +0 -0
  168. data/website/static/1.13/cookbooks/customizing-sideloads.html +0 -325
  169. data/website/static/1.13/cookbooks/etags.md +0 -0
  170. data/website/static/1.13/cookbooks/hopping-relationships.html +0 -324
  171. data/website/static/1.13/cookbooks/json_attributes.md +0 -0
  172. data/website/static/1.13/cookbooks/openstruct-models.md +0 -0
  173. data/website/static/1.13/cookbooks/remote-resources.md +0 -0
  174. data/website/static/1.13/cookbooks/without-activerecord.html +0 -510
  175. data/website/static/1.13/features.html +0 -249
  176. data/website/static/1.13/feed.xml +0 -106
  177. data/website/static/1.13/guides/concepts/backends-and-models.html +0 -467
  178. data/website/static/1.13/guides/concepts/debugging.html +0 -440
  179. data/website/static/1.13/guides/concepts/endpoints.html +0 -432
  180. data/website/static/1.13/guides/concepts/error-handling.html +0 -396
  181. data/website/static/1.13/guides/concepts/links.html +0 -501
  182. data/website/static/1.13/guides/concepts/remote-resources.html +0 -536
  183. data/website/static/1.13/guides/concepts/resources.html +0 -2176
  184. data/website/static/1.13/guides/concepts/testing.html +0 -1469
  185. data/website/static/1.13/guides/getting-started/installation.html +0 -420
  186. data/website/static/1.13/guides/graphiti-rails-migration.html +0 -242
  187. data/website/static/1.13/guides/index.html +0 -269
  188. data/website/static/1.13/guides/overview.html +0 -325
  189. data/website/static/1.13/guides/upgrading-2-0.html +0 -193
  190. data/website/static/1.13/guides/upgrading.html +0 -314
  191. data/website/static/1.13/guides/vandal.html +0 -282
  192. data/website/static/1.13/guides/why.html +0 -1121
  193. data/website/static/1.13/index.html +0 -72
  194. data/website/static/1.13/js/authentication.html +0 -295
  195. data/website/static/1.13/js/ddau.html +0 -238
  196. data/website/static/1.13/js/extra-params.html +0 -270
  197. data/website/static/1.13/js/index.html +0 -321
  198. data/website/static/1.13/js/installation.html +0 -637
  199. data/website/static/1.13/js/introduction.html +0 -257
  200. data/website/static/1.13/js/middleware.html +0 -318
  201. data/website/static/1.13/js/reads/fieldsets.html +0 -271
  202. data/website/static/1.13/js/reads/filtering.html +0 -289
  203. data/website/static/1.13/js/reads/includes.html +0 -260
  204. data/website/static/1.13/js/reads/index.html +0 -497
  205. data/website/static/1.13/js/reads/nested-queries.html +0 -353
  206. data/website/static/1.13/js/reads/pagination.html +0 -260
  207. data/website/static/1.13/js/reads/sorting.html +0 -265
  208. data/website/static/1.13/js/reads/statistics.html +0 -289
  209. data/website/static/1.13/js/state-syncing.html +0 -340
  210. data/website/static/1.13/js/writes/deferred.html +0 -296
  211. data/website/static/1.13/js/writes/dirty-tracking.html +0 -399
  212. data/website/static/1.13/js/writes/index.html +0 -391
  213. data/website/static/1.13/js/writes/nested.html +0 -330
  214. data/website/static/1.13/js/writes/validations.html +0 -272
  215. data/website/static/1.13/quickstart.html +0 -660
  216. data/website/static/1.13/template +0 -161
  217. data/website/static/1.13/tutorial/index.html +0 -250
  218. data/website/static/1.13/tutorial/step_0.html +0 -292
  219. data/website/static/1.13/tutorial/step_1.html +0 -517
  220. data/website/static/1.13/tutorial/step_2.html +0 -481
  221. data/website/static/1.13/tutorial/step_3.html +0 -323
  222. data/website/static/1.13/tutorial/step_4.html +0 -318
  223. data/website/static/1.13/tutorial/step_5.html +0 -265
  224. data/website/static/1.13/tutorial/step_6.html +0 -276
  225. data/website/static/1.13/tutorial/step_7.html +0 -390
  226. data/website/static/1.13/tutorial/step_8.html +0 -316
  227. data/website/static/1.13/tutorial/step_9.html +0 -365
  228. data/website/static/CNAME +0 -1
  229. data/website/static/assets/img/error_payload.png +0 -0
  230. data/website/static/assets/img/legacy/legacy-0378a3bb39.png +0 -0
  231. data/website/static/assets/img/legacy/legacy-05bbd3e5fd.png +0 -0
  232. data/website/static/assets/img/legacy/legacy-07aa104495.png +0 -0
  233. data/website/static/assets/img/legacy/legacy-0c75a16b3a.gif +0 -0
  234. data/website/static/assets/img/legacy/legacy-3076df6209.png +0 -0
  235. data/website/static/assets/img/legacy/legacy-7f6889bc89.png +0 -0
  236. data/website/static/assets/img/legacy/legacy-a2cc4363c3.png +0 -0
  237. data/website/static/assets/img/legacy/legacy-f67cfa89ab.png +0 -0
  238. data/website/static/assets/img/meta_total_count.png +0 -0
  239. data/website/static/img/docusaurus-social-card.jpg +0 -0
  240. data/website/static/img/docusaurus.png +0 -0
  241. data/website/static/img/favicon.ico +0 -0
  242. data/website/static/img/logo.png +0 -0
  243. data/website/static/img/logo.svg +0 -1
  244. data/website/static/img/undraw_docusaurus_mountain.svg +0 -171
  245. data/website/static/img/undraw_docusaurus_react.svg +0 -170
  246. data/website/static/img/undraw_docusaurus_tree.svg +0 -40
@@ -1,249 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
9
- <link href="https://fonts.googleapis.com/css?family=Boogaloo" rel="stylesheet">
10
-
11
- <link rel="apple-touch-icon" sizes="180x180" href="/1.13/assets/favicons/apple-touch-icon.png">
12
- <link rel="icon" type="image/png" sizes="32x32" href="/1.13/assets/favicons/favicon-32x32.png">
13
- <link rel="icon" type="image/png" sizes="16x16" href="/1.13/assets/favicons/favicon-16x16.png">
14
- <link rel="manifest" href="/1.13/assets/favicons/site.webmanifest">
15
- <link rel="mask-icon" href="/1.13/assets/favicons/safari-pinned-tab.svg" color="#F86DA7">
16
- <link rel="shortcut icon" href="/1.13/assets/favicons/favicon.ico">
17
- <meta name="msapplication-TileColor" content="#F86DA7">
18
- <meta name="msapplication-config" content="/1.13/assets/favicons/browserconfig.xml">
19
- <meta name="theme-color" content="#F86DA7">
20
-
21
- <title>Graphiti</title>
22
- <meta name="description" content="Stylish Graph APIs">
23
-
24
- <link rel="stylesheet" href="/1.13/assets/main.css?ref=wh4t3v45">
25
- <link rel="alternate" type="application/rss+xml" title="Graphiti" href="/1.13/feed.xml">
26
-
27
- <!-- Global site tag (gtag.js) - Google Analytics -->
28
- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-127904727-1"></script>
29
- <script>
30
- window.dataLayer = window.dataLayer || [];
31
- function gtag(){dataLayer.push(arguments);}
32
- gtag('js', new Date());
33
-
34
- gtag('config', 'UA-127904727-1');
35
- </script>
36
-
37
- <!-- javascript -->
38
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
39
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
40
-
41
-
42
- </head>
43
-
44
-
45
- <body>
46
- <main class="page-content" aria-label="Content">
47
- <div class="wrapper">
48
- <header class="navbar navbar-inverse normal" role="banner">
49
- <div class="container">
50
- <div class="navbar-header">
51
- <a href="/1.13/1.13" class="navbar-brand">
52
- <img alt="logo" src="/1.13/assets/img/logo.png">
53
- </a>
54
- </div>
55
- <nav class="" role="navigation">
56
- <ul class="nav navbar-nav nav-links">
57
- <li>
58
- <a class="quickstart nav-link" href="/1.13/quickstart">Quickstart</a>
59
- </li>
60
- <li>
61
- <a class="guides nav-link" href="/1.13/guides">Guides</a>
62
- </li>
63
- <li>
64
- <a class="tutorial nav-link" href="/1.13/tutorial">Tutorial</a>
65
- </li>
66
- <li>
67
- <a class="spraypaint nav-link" href="/1.13/js">Spraypaint</a>
68
- </li>
69
- </ul>
70
- <ul class="nav gh navbar-nav navbar-right visible-lg visible-md">
71
- <li>
72
- <span class="star">⭐</span>
73
- <a href="https://github.com/graphiti-api/graphiti">
74
- <img alt="github-star" style="margin-right: 65px;margin-top: -20px" src="/1.13/assets/img/gh.png">
75
- </a>
76
- </li>
77
- </ul>
78
- </nav>
79
- </div>
80
- </header>
81
-
82
- <div class="container">
83
- <div class="features-tabs-section">
84
- <div class="container">
85
- <div class="row header">
86
- <h3>Formats to showcase features</h3>
87
- <p>Choose your favorite formats for your own sites</p>
88
- </div>
89
- <div class="row">
90
- <div class="col-md-12 tabs-wrapper">
91
- <ul class="nav nav-tabs">
92
- <li class="active"><a href="#home" data-toggle="tab">Upstart your development</a></li>
93
- <li><a href="#profile" data-toggle="tab">Get ready in half the time</a></li>
94
- <li><a href="#messages" data-toggle="tab">Collaborate with everyone</a></li>
95
- <li><a href="#settings" data-toggle="tab">Get more done faster</a></li>
96
- </ul>
97
-
98
- <div class="tab-content">
99
- <div class="tab-pane fade in active" id="home">
100
- <div class="col-md-6 info">
101
- <h4>You don't need to have any advanced technical</h4>
102
- <p>
103
- Whether you want to fill this paragraph with some text like I'm doing right now, this place is perfect to describe some features or anything you want - React has a complete solution for you.
104
- </p>
105
- <p>
106
- You have complete control over the look &amp; feel of your website, we offer the best quality so you take your site up and running in no time.
107
- </p>
108
- </div>
109
- <div class="col-md-6 image">
110
- <img src="/1.13/images/tabs/pic1.png" class="img-responsive" alt="picture1" />
111
- </div>
112
- </div>
113
- <div class="tab-pane fade" id="profile">
114
- <div class="col-md-6 image">
115
- <img src="/1.13/images/portfolioitem1.png" class="img-responsive" alt="picture2" />
116
- </div>
117
- <div class="col-md-6 info">
118
- <h4>You don't need to have any advanced technical</h4>
119
- <p>
120
- Whether you want to fill this paragraph with some text like I'm doing right now, this place is perfect to describe some features or anything you want - React has a complete solution for you.
121
- </p>
122
- </div>
123
- </div>
124
- <div class="tab-pane fade" id="messages">
125
- <div class="col-md-6 info">
126
- <h4>You don't need to have any advanced technical</h4>
127
- <p>
128
- Whether you want to fill this paragraph with some text like I'm doing right now, this place is perfect to describe some features or anything you want - React has a complete solution for you.
129
- </p>
130
- <p>
131
- You have complete control over the look &amp; feel of your website, we offer the best quality so you take your site up and running in no time.
132
- </p>
133
- </div>
134
- <div class="col-md-6 image">
135
- <img src="/1.13/images/tabs/pic2.png" class="img-responsive" style="position: relative;top: 15px;" alt="picture3" />
136
- </div>
137
- </div>
138
- <div class="tab-pane fade" id="settings">
139
- <div class="col-md-6 image">
140
- <img src="/1.13/images/tabs/pic1.png" class="img-responsive" alt="picture4" />
141
- </div>
142
- <div class="col-md-6 info">
143
- <h4>You don't need to have any advanced technical</h4>
144
- <p>
145
- Whether you want to fill this paragraph with some text like I'm doing right now, this place is perfect to describe some features or anything you want - React has a complete solution for you.
146
- </p>
147
- </div>
148
- </div>
149
- </div>
150
- </div>
151
- </div>
152
- </div>
153
- </div>
154
-
155
- </div>
156
- </div>
157
- </main>
158
- <div class="main-footer main-footer--dark">
159
- <div class="container">
160
- <div class="row">
161
- <div class="col-sm-4 menu">
162
- <h3>Overview</h3>
163
- <ul>
164
- <li>
165
- <a href="/1.13/quickstart">Quickstart</a>
166
- </li>
167
- <li>
168
- <a href="/1.13/tutorial">Tutorial</a>
169
- </li>
170
- <li>
171
- <a href="/1.13/guides">Guides</a>
172
- </li>
173
- </ul>
174
- </div>
175
- <div class="col-sm-4 menu">
176
- <h3>Contact</h3>
177
- <ul>
178
- <li>
179
- <a target="_blank" href="https://discord.gg/wgqkMBsSRV">Discord Chat</a>
180
- </li>
181
- <li>
182
- <a href="mailto:richmolj@gmail.com">Email</a>
183
- </li>
184
- </ul>
185
- </div>
186
- <div class="col-sm-4 menu">
187
- <h3>Related</h3>
188
- <ul>
189
- <li>
190
- <a target="_blank" href="http://jsonapi.org">JSONAPI Spec</a>
191
- </li>
192
- <li>
193
- <a target="_blank" href="http://jsonapi-rb.org">jsonapi-rb</a>
194
- </li>
195
- <li>
196
- <a target="_blank" href="https://vuejs.org/">VueJS</a>
197
- </li>
198
- </ul>
199
- </div>
200
- </div>
201
- </div>
202
- </div>
203
-
204
- <script type="text/javascript">
205
- $(function () {
206
-
207
- var flipTabs = function() {
208
- var isTS = true;
209
- if (localStorage.getItem('js-lang') === 'javascript') {
210
- isTS = false;
211
- }
212
-
213
- $('.code-tabs').each(function(index, el) {
214
- if (isTS) {
215
- console.log('hiding js');
216
- $($(el).children()[1]).hide();
217
- $($(el).children()[0]).show();
218
- } else {
219
- console.log('hiding ts');
220
- $($(el).children()[0]).hide();
221
- $($(el).children()[1]).show();
222
- }
223
- });
224
-
225
- if (isTS) {
226
- $('.tab.typescript').addClass('active');
227
- $('.tab.javascript').removeClass('active');
228
- } else {
229
- $('.tab.typescript').removeClass('active');
230
- $('.tab.javascript').addClass('active');
231
- }
232
- }
233
-
234
- $('.tab').click(function() {
235
- if ($(this).hasClass('typescript')) {
236
- localStorage.setItem('js-lang', 'typescript');
237
- } else {
238
- localStorage.setItem('js-lang', 'javascript');
239
- }
240
-
241
- flipTabs();
242
- });
243
-
244
- flipTabs();
245
- })
246
- </script>
247
-
248
- </body>
249
- </html>
@@ -1,106 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="/1.13/feed.xml" rel="self" type="application/atom+xml" /><link href="/1.13/" rel="alternate" type="text/html" /><updated>2026-08-06T14:52:03-05:00</updated><id>/1.13/feed.xml</id><title type="html">Graphiti</title><subtitle>Stylish Graph APIs
2
- </subtitle><entry><title type="html">Tutorial Write-Ups Are Out!</title><link href="/1.13/2019/10/14/tutorial.html" rel="alternate" type="text/html" title="Tutorial Write-Ups Are Out!" /><published>2019-10-14T00:00:00-05:00</published><updated>2019-10-14T00:00:00-05:00</updated><id>/1.13/2019/10/14/tutorial</id><content type="html" xml:base="/1.13/2019/10/14/tutorial.html"><![CDATA[<p>Though we’ve long had a <a href="https://github.com/graphiti-api/employee_directory">sample application</a> with step-by-step diffs, we’ve been missing a full walkthrough. That now exists! Start with <a href="/1.13/tutorial/step_0">Step 0: Bootstrapping</a>.</p>
3
-
4
- <p>These write-ups will tell you the relevant code and commands, but
5
- they’ll also give helpful context around the decisions Graphiti makes.
6
- Even if you’re already a Graphiti user, I suggest checking it out!</p>
7
-
8
- <p><br />
9
- <br />
10
- <br />
11
- <br />
12
- <br />
13
- <br />
14
- <br />
15
- <br />
16
- <br />
17
- <br />
18
- <br /></p>]]></content><author><name>Lee Richmond</name></author><summary type="html"><![CDATA[Though we’ve long had a sample application with step-by-step diffs, we’ve been missing a full walkthrough. That now exists! Start with Step 0: Bootstrapping.]]></summary></entry><entry><title type="html">Graphiti 1.2 Released</title><link href="/1.13/2019/05/20/graphiti-1-2.html" rel="alternate" type="text/html" title="Graphiti 1.2 Released" /><published>2019-05-20T00:00:00-05:00</published><updated>2019-05-20T00:00:00-05:00</updated><id>/1.13/2019/05/20/graphiti-1-2</id><content type="html" xml:base="/1.13/2019/05/20/graphiti-1-2.html"><![CDATA[<p>I’m thrilled to announce much-needed, much-improved Rails integration,
19
- courtesy of the amazing <a href="https://github.com/wagenet">Peter Wagenet</a> and
20
- the new <a href="https://github.com/graphiti-api/graphiti-rails">graphiti-rails</a> gem.
21
- This gives us better error handling, tighter controllers, and a solid
22
- foundation for the codebase moving forward.</p>
23
-
24
- <p>You’ll be especially happy about this release if you’ve ever tried to
25
- add error-handling middleware. Because prior versions of Graphiti used
26
- <code class="language-plaintext highlighter-rouge">rescue_from</code> in <code class="language-plaintext highlighter-rouge">ApplicationController</code>, we intercepted errors before
27
- other middleware had access to them. Now everything just works.</p>
28
-
29
- <p>As part of this upgrade, we’re switching from <code class="language-plaintext highlighter-rouge">GraphitiErrors</code> to
30
- <a href="https://github.com/wagenet/rescue_registry">RescueRegistry</a>. Think of
31
- <code class="language-plaintext highlighter-rouge">RescueRegistry</code> as a well-refactored version of <code class="language-plaintext highlighter-rouge">GraphitiErrors</code>, available to
32
- even non-Graphiti developers.</p>
33
-
34
- <p>Though you don’t have to do anything to upgrade to Graphiti 1.2, this release will start throwing deprecation notices around <code class="language-plaintext highlighter-rouge">ApplicationController</code>. Don’t worry, the required changes are quite minor and spelled out in the <a href="/1.13/guides/graphiti-rails-migration">graphiti-rails migration guide</a>.</p>
35
-
36
- <p>I’m quite happy with how this effort turned out. This release dramatically improves our integration with Rails internals, and I think everyone involved learned a lot. I’m honored to work with such talented developers in our open-source community ❤️</p>
37
-
38
- <p>If you have any further questions, check out the <code class="language-plaintext highlighter-rouge">#dev</code> or <code class="language-plaintext highlighter-rouge">#rails</code>
39
- channels in our <a href="https://discord.gg/wgqkMBsSRV">Discord Chat</a></p>
40
-
41
- <p><br />
42
- <br />
43
- <br />
44
- <br />
45
- <br />
46
- <br />
47
- <br />
48
- <br />
49
- <br />
50
- <br />
51
- <br /></p>]]></content><author><name>Lee Richmond</name></author><summary type="html"><![CDATA[I’m thrilled to announce much-needed, much-improved Rails integration, courtesy of the amazing Peter Wagenet and the new graphiti-rails gem. This gives us better error handling, tighter controllers, and a solid foundation for the codebase moving forward.]]></summary></entry><entry><title type="html">Graphiti 1.1 Released</title><link href="/1.13/2019/05/08/graphiti-1-1.html" rel="alternate" type="text/html" title="Graphiti 1.1 Released" /><published>2019-05-08T00:00:00-05:00</published><updated>2019-05-08T00:00:00-05:00</updated><id>/1.13/2019/05/08/graphiti-1-1</id><content type="html" xml:base="/1.13/2019/05/08/graphiti-1-1.html"><![CDATA[<p>Our first minor version bump centers around an important update:
52
- <strong>better errors for clients</strong>. This is the first phase of work to allow us to provide more actionable errors to API users who might not also be developers of the API itself. This was brought to us by Graphiti maintainer <a href="https://github.com/wadetandy">Wade Tandy</a>.</p>
53
-
54
- <p>Previously, when a client sent a bad write request to the server -
55
- unwritable attributes/relationships, or bad types - we would render the
56
- same generic 500 error JSON. We now render helpful error messages, so
57
- third-party clients know how to correct their requests.</p>
58
-
59
- <p>This is currently only affecting invalid writes, but the foundation laid
60
- will be extendable to reads as well.</p>
61
-
62
- <p><br />
63
- <br />
64
- <br />
65
- <br />
66
- <br />
67
- <br />
68
- <br />
69
- <br />
70
- <br />
71
- <br />
72
- <br />
73
- <br />
74
- <br />
75
- <br />
76
- <br />
77
- <br />
78
- <br />
79
- <br />
80
- <br />
81
- <br />
82
- <br /></p>]]></content><author><name>Lee Richmond</name></author><summary type="html"><![CDATA[Our first minor version bump centers around an important update: better errors for clients. This is the first phase of work to allow us to provide more actionable errors to API users who might not also be developers of the API itself. This was brought to us by Graphiti maintainer Wade Tandy.]]></summary></entry><entry><title type="html">Graphiti 1.0 Released 🎉</title><link href="/1.13/2019/03/31/graphiti-1-0.html" rel="alternate" type="text/html" title="Graphiti 1.0 Released 🎉" /><published>2019-03-31T00:00:00-05:00</published><updated>2019-03-31T00:00:00-05:00</updated><id>/1.13/2019/03/31/graphiti-1-0</id><content type="html" xml:base="/1.13/2019/03/31/graphiti-1-0.html"><![CDATA[<p>This project has gone through a number of iterations over the past three years. I’m happy to say we’ve now released 1.0, committing to semantic versioning. Graphiti has now seen enough use, across a wide variety of scenarios, that we can commit to no backwards-incompatible changes for a long while, and a changelog for future releases.</p>
83
-
84
- <p>We’ll be writing more in this blog about our future roadmap. Stay tuned!</p>
85
-
86
- <p><br />
87
- <br />
88
- <br />
89
- <br />
90
- <br />
91
- <br />
92
- <br />
93
- <br />
94
- <br />
95
- <br />
96
- <br />
97
- <br />
98
- <br />
99
- <br />
100
- <br />
101
- <br />
102
- <br />
103
- <br />
104
- <br />
105
- <br />
106
- <br /></p>]]></content><author><name>Lee Richmond</name></author><summary type="html"><![CDATA[This project has gone through a number of iterations over the past three years. I’m happy to say we’ve now released 1.0, committing to semantic versioning. Graphiti has now seen enough use, across a wide variety of scenarios, that we can commit to no backwards-incompatible changes for a long while, and a changelog for future releases.]]></summary></entry></feed>