Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.0 #13

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ lintr_cache
^docs$
^pkgdown$
^\.github$
^revdep$
14 changes: 7 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Package: gqlr
Title: 'GraphQL' Server in R
Version: 0.0.2.9000
Version: 0.1.0
Authors@R: c(
person("Barret", "Schloerke", email = "[email protected]", role = c("aut", "cre")),
person("Ryan", "Hafen", email = "[email protected]", role = c("ths")),
person("GraphQL", role = "cph", comment = "http://graphql.github.io/graphql-spec/")
person("GraphQL", role = "cph", comment = "http://spec.graphql.org/")
)
Description: Server implementation of 'GraphQL' <http://graphql.github.io/graphql-spec/>,
Description: Server implementation of 'GraphQL' <http://spec.graphql.org/>,
a query language originally created by Facebook for describing data requirements on complex application
data models. Visit <http://graphql.org> to learn more about 'GraphQL'.
data models. Visit <https://graphql.org> to learn more about 'GraphQL'.
Depends:
R (>= 3.2.2)
License: MIT + file LICENSE
URL: http://schloerke.com/gqlr/,
https://github.com/schloerke/gqlr,
http://graphql.github.io/graphql-spec/,
http://graphql.org
http://spec.graphql.org/,
https://graphql.org
BugReports: https://github.com/schloerke/gqlr/issues
Imports:
graphql (>= 1.3),
Expand All @@ -28,7 +28,7 @@ Suggests:
roxygen2 (>= 7.0.0),
testthat (>= 3.1.5)
Roxygen: list()
RoxygenNote: 7.2.2
RoxygenNote: 7.2.3
Encoding: UTF-8
Config/testthat/edition: 3
Config/Needs/website: tidyverse/tidytemplate
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gqlr (development version)
# gqlr 0.1.0

## Breaking changes

Expand Down
6 changes: 3 additions & 3 deletions R/R6-6.1-executing-requests.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@
#' @param operation_name name of request operation to execute. If not value is
#' provided it will use the operation in the request string. If more than one
#' operations exist, an error will be produced. See
#' \url{https://graphql.github.io/graphql-spec/October2016/#GetOperation()}
#' \url{http://spec.graphql.org/October2016/#GetOperation()}
#' @param variables a named list containing variable values.
#' \url{https://graphql.github.io/graphql-spec/October2016/#sec-Language.Variables}
#' \url{http://spec.graphql.org/October2016/#sec-Language.Variables}
#' @param initial_value default value for executing requests. This value can
#' either be provided and/or combined with the resolve method of the query
#' root type or mutation root type. The value provided should be a named list
#' of the field name (key) and a value matching that field name type. The
#' value may be a function that returns a value of the field name type.
#' @param ... ignored for paramter expansion
#' @param verbose_errors logical to determine if error-like messages should be displayed when processing a request that finds unknown structures. Be default, this is only enabled when \code{verbose_errors = rlang::is_interactive()} is \code{TRUE}.
#' @references \url{https://graphql.github.io/graphql-spec/October2016/#sec-Execution}
#' @references \url{http://spec.graphql.org/October2016/#sec-Execution}
#' @export
#' @examples
#' \donttest{
Expand Down
2 changes: 1 addition & 1 deletion R/R6-ErrorList.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for_onload(function() {
ErrorList <- R6Class("ErrorList",
private = list(
# nolint start
# https://graphql.github.io/graphql-spec/October2016/
# http://spec.graphql.org/October2016/
# document.querySelectorAll( "#sec-Validation section" ).forEach(
# function(x,i){console.log(x.firstChild.innerText)}
# )
Expand Down
2 changes: 1 addition & 1 deletion R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' To view the GraphiQL user interface, navigate to the URL provided when the server is started. The default location is \code{http://localhost:8000/graphiql/}. By default, this route is only available when running the server interactively (\code{graphiql = rlang::is_interactive()}).
#'
#' \code{server()} implements the basic necessities described in \url{http://graphql.org/learn/serving-over-http/}. There are four routes implemented:
#' \code{server()} implements the basic necessities described in \url{https://graphql.org/learn/serving-over-http/}. There are four routes implemented:
#'
#' \describe{
#' \item{\code{'/'}}{GET. If run interactively, forwards to \code{/graphiql} for user interaction with the GraphQL server. This route is diabled if \code{graphiql = rlang::is_interactive()} is not \code{TRUE}.}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Overview

GraphQL is a data "query language created by Facebook in 2015 for describing the capabilities and requirements of data models for client‐server applications". The [GraphQL specification can be read on their hosted GitHub](https://graphql.github.io/graphql-spec/). A [cliff notes version is described on GraphQL's GitHub](https://github.com/graphql/graphql-spec). To learn more about the GraphQL language, I highly recommend [GraphQL's website](http://graphql.org/learn/).
GraphQL is a data "query language created by Facebook in 2015 for describing the capabilities and requirements of data models for client‐server applications". The [GraphQL specification can be read on their hosted GitHub](http://spec.graphql.org/). A [cliff notes version is described on GraphQL's GitHub](http://spec.graphql.org/). To learn more about the GraphQL language, I highly recommend [GraphQL's website](https://graphql.org/learn/).

This package pulls inspiration from [graphql-js](https://github.com/graphql/graphql-js) and [Mathew Mueller's graph.ql](https://github.com/matthewmueller/graph.ql). I wanted the full functionality of GraphQL, but I didn't want to force users to write full object definitions when can already be defined with GraphQL syntax.

Expand Down
6 changes: 3 additions & 3 deletions man/execute_request.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/server.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions revdep/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
checks
library
checks.noindex
library.noindex
cloud.noindex
data.sqlite
*.html
23 changes: 23 additions & 0 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Platform

|field |value |
|:--------|:------------------------------|
|version |R version 4.1.3 (2022-03-10) |
|os |macOS Big Sur/Monterey 10.16 |
|system |x86_64, darwin17.0 |
|ui |X11 |
|language |(EN) |
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |America/New_York |
|date |2023-01-07 |
|pandoc |2.19.2 @ /usr/local/bin/pandoc |

# Dependencies

|package |old |new |Δ |
|:-------|:-----|:-----|:--|
|gqlr |0.0.2 |0.1.0 |* |

# Revdeps

7 changes: 7 additions & 0 deletions revdep/cran.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## revdepcheck results

We checked 0 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages

1 change: 1 addition & 0 deletions revdep/failures.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*Wow, no problems at all. :)*
1 change: 1 addition & 0 deletions revdep/problems.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*Wow, no problems at all. :)*