Skip to content

Commit

Permalink
Updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegIlyenko committed Jan 17, 2017
1 parent e67213e commit 6a6fc7a
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 7 deletions.
5 changes: 3 additions & 2 deletions app/models/SchemaDefinition.scala
Expand Up @@ -85,7 +85,7 @@ object SchemaDefinition {
* The first method is the way we resolve an ID to its object. The second is the
* way we resolve an object that implements node to its type.
*/
val NodeDefinition(nodeInterface, nodeField) =
val NodeDefinition(nodeInterface, nodeField, nodesField) =
Node.definition((globalId: GlobalId, ctx: Context[FactionRepo, Unit]) {
if (globalId.typeName == "Faction")
ctx.ctx.getFaction(globalId.id)
Expand Down Expand Up @@ -178,7 +178,8 @@ object SchemaDefinition {
resolve = ctx => ctx.ctx.getFactions(ctx.arg(namesArgument))),
Field("rebels", OptionType(FactionType), resolve = _.ctx.getRebels),
Field("empire", OptionType(FactionType), resolve = _.ctx.getEmpire),
nodeField))
nodeField,
nodesField))

case class ShipMutationPayload(clientMutationId: Option[String], shipId: String, factionId: String) extends Mutation

Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Expand Up @@ -7,8 +7,8 @@ scalaVersion := "2.11.8"

libraryDependencies ++= Seq(
filters,
"org.sangria-graphql" %% "sangria-relay" % "1.0.0-RC2",
"org.sangria-graphql" %% "sangria-play-json" % "0.3.2"
"org.sangria-graphql" %% "sangria-relay" % "1.0.0",
"org.sangria-graphql" %% "sangria-play-json" % "1.0.0"
)

resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
@@ -1 +1 @@
sbt.version=0.13.11
sbt.version=0.13.13
2 changes: 1 addition & 1 deletion project/plugins.sbt
@@ -1,4 +1,4 @@
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.4")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.10")
addSbtPlugin("com.heroku" % "sbt-heroku" % "0.4.3")

addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
Expand Down
42 changes: 41 additions & 1 deletion schema.json
Expand Up @@ -396,6 +396,46 @@
},
"isDeprecated" : false,
"deprecationReason" : null
}, {
"name" : "nodes",
"description" : "Fetches objects given their IDs",
"args" : [ {
"name" : "ids",
"description" : "The IDs of objects",
"type" : {
"kind" : "NON_NULL",
"name" : null,
"ofType" : {
"kind" : "LIST",
"name" : null,
"ofType" : {
"kind" : "NON_NULL",
"name" : null,
"ofType" : {
"kind" : "SCALAR",
"name" : "ID",
"ofType" : null
}
}
}
},
"defaultValue" : null
} ],
"type" : {
"kind" : "NON_NULL",
"name" : null,
"ofType" : {
"kind" : "LIST",
"name" : null,
"ofType" : {
"kind" : "INTERFACE",
"name" : "Node",
"ofType" : null
}
}
},
"isDeprecated" : false,
"deprecationReason" : null
} ],
"inputFields" : null,
"interfaces" : [ ],
Expand Down Expand Up @@ -532,7 +572,7 @@
}, {
"kind" : "OBJECT",
"name" : "__Directive",
"description" : "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL’s execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
"description" : "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQLs execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
"fields" : [ {
"name" : "name",
"description" : null,
Expand Down

0 comments on commit 6a6fc7a

Please sign in to comment.