I have read through:
https://forums.fauna.com/t/updating-graphql-schema/327/12
which covers this issue, despite having a different header.
I have this issue on a new child db I have called ‘test’ (I also get the error with the parentdb) and I therefore supply the requested data, for reviewing this issue, below:
Map(Paginate(Databases()), Lambda("x",Get(Var("x"))))
Map(Paginate(Collections()), Lambda("x",Get(Var("x"))))
Map(Paginate(Indexes()), Lambda("x",Get(Var("x"))))
Map(Paginate(Functions()), Lambda("x",Get(Var("x"))))
{
data: [
{
ref: Ref(Ref("functions"), "all_user_names"),
ts: 1599619167500000,
name: "all_user_names",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Query",
field: {
name: "allUserNames",
directives: [
{
name: "resolver",
args: {
name: "all_user_names",
paginated: false
}
}
],
type: {
NotNull: {
List: {
NotNull: {
Named: "String"
}
}
}
}
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function all_user_names was not implemented yet. Please access your database and provide an implementation for the all_user_names function."
)
)
)
},
{
ref: Ref(Ref("functions"), "all_player_challenger_addresses"),
ts: 1599619167500000,
name: "all_player_challenger_addresses",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Query",
field: {
name: "allPlayerChallengerAddresses",
directives: [
{
name: "resolver",
args: {
name: "all_player_challenger_addresses",
paginated: false
}
}
],
type: {
NotNull: {
List: {
NotNull: {
Named: "String"
}
}
}
}
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function all_player_challenger_addresses was not implemented yet. Please access your database and provide an implementation for the all_player_challenger_addresses function."
)
)
)
},
{
ref: Ref(Ref("functions"), "create_new_player"),
ts: 1599619167500000,
name: "create_new_player",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Mutation",
field: {
name: "createNewPlayer",
directives: [
{
name: "resolver",
args: {
name: "create_new_player",
paginated: false
}
}
],
type: {
NotNull: {
Named: "Player"
}
},
arguments: [
{
name: "active",
type: {
NotNull: {
Named: "Boolean"
}
}
},
{
name: "address",
type: {
NotNull: {
Named: "String"
}
}
},
{
name: "rank",
type: {
NotNull: {
Named: "Int"
}
}
},
{
name: "challengeraddress",
type: {
Named: "String"
}
}
]
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function create_new_player was not implemented yet. Please access your database and provide an implementation for the create_new_player function."
)
)
)
},
{
ref: Ref(Ref("functions"), "all_userjoinedranking"),
ts: 1599619167500000,
name: "all_userjoinedranking",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Query",
field: {
name: "allUserJoinedRanking",
directives: [
{
name: "resolver",
args: {
name: "all_userjoinedranking",
paginated: false
}
}
],
type: {
List: {
Named: "UserJoinedRanking"
}
}
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function all_userjoinedranking was not implemented yet. Please access your database and provide an implementation for the all_userjoinedranking function."
)
)
)
},
{
ref: Ref(Ref("functions"), "create_new_userjoinedranking"),
ts: 1599619167500000,
name: "create_new_userjoinedranking",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Mutation",
field: {
name: "createNewUserJoinedRanking",
directives: [
{
name: "resolver",
args: {
name: "create_new_userjoinedranking",
paginated: false
}
}
],
type: {
NotNull: {
Named: "UserJoinedRanking"
}
},
arguments: [
{
name: "active",
type: {
NotNull: {
Named: "Boolean"
}
}
},
{
name: "rankingid",
type: {
NotNull: {
Named: "String"
}
}
},
{
name: "rankingname",
type: {
NotNull: {
Named: "String"
}
}
},
{
name: "useraddr",
type: {
NotNull: {
Named: "String"
}
}
},
{
name: "rankingowneraddr",
type: {
NotNull: {
Named: "String"
}
}
}
]
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function create_new_userjoinedranking was not implemented yet. Please access your database and provide an implementation for the create_new_userjoinedranking function."
)
)
)
},
{
ref: Ref(Ref("functions"), "all_rankings"),
ts: 1599619167500000,
name: "all_rankings",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Query",
field: {
name: "allRankings",
directives: [
{
name: "resolver",
args: {
name: "all_rankings",
paginated: false
}
}
],
type: {
List: {
Named: "Ranking"
}
}
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function all_rankings was not implemented yet. Please access your database and provide an implementation for the all_rankings function."
)
)
)
},
{
ref: Ref(Ref("functions"), "all_player_ranks"),
ts: 1599619167500000,
name: "all_player_ranks",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Query",
field: {
name: "allPlayerRanks",
directives: [
{
name: "resolver",
args: {
name: "all_player_ranks",
paginated: false
}
}
],
type: {
NotNull: {
List: {
NotNull: {
Named: "Int"
}
}
}
}
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function all_player_ranks was not implemented yet. Please access your database and provide an implementation for the all_player_ranks function."
)
)
)
},
{
ref: Ref(Ref("functions"), "all_players"),
ts: 1599619167500000,
name: "all_players",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Query",
field: {
name: "allPlayers",
directives: [
{
name: "resolver",
args: {
name: "all_players",
paginated: false
}
}
],
type: {
List: {
Named: "Player"
}
}
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function all_players was not implemented yet. Please access your database and provide an implementation for the all_players function."
)
)
)
},
{
ref: Ref(Ref("functions"), "all_player_addresses"),
ts: 1599619167500000,
name: "all_player_addresses",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Query",
field: {
name: "allPlayerAddresses",
directives: [
{
name: "resolver",
args: {
name: "all_player_addresses",
paginated: false
}
}
],
type: {
NotNull: {
List: {
NotNull: {
Named: "String"
}
}
}
}
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function all_player_addresses was not implemented yet. Please access your database and provide an implementation for the all_player_addresses function."
)
)
)
},
{
ref: Ref(Ref("functions"), "all_users"),
ts: 1599619167500000,
name: "all_users",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Query",
field: {
name: "allUsers",
directives: [
{
name: "resolver",
args: {
name: "all_users",
paginated: false
}
}
],
type: {
List: {
Named: "User"
}
}
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function all_users was not implemented yet. Please access your database and provide an implementation for the all_users function."
)
)
)
},
{
ref: Ref(Ref("functions"), "create_new_ranking"),
ts: 1599619167500000,
name: "create_new_ranking",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Mutation",
field: {
name: "createNewRanking",
directives: [
{
name: "resolver",
args: {
name: "create_new_ranking",
paginated: false
}
}
],
type: {
NotNull: {
Named: "Ranking"
}
},
arguments: [
{
name: "active",
type: {
NotNull: {
Named: "Boolean"
}
}
},
{
name: "rankingname",
type: {
NotNull: {
Named: "String"
}
}
},
{
name: "rankingdesc",
type: {
Named: "String"
}
},
{
name: "rankingowneraddr",
type: {
NotNull: {
Named: "String"
}
}
}
]
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function create_new_ranking was not implemented yet. Please access your database and provide an implementation for the create_new_ranking function."
)
)
)
},
{
ref: Ref(Ref("functions"), "create_andor_login_user"),
ts: 1599619167500000,
name: "create_andor_login_user",
data: {
gql: {
ts: Time("2020-09-09T02:39:27.306193Z"),
meta: {
location: "Mutation",
field: {
name: "createAndOrLoginUser",
directives: [
{
name: "resolver",
args: {
name: "create_andor_login_user",
paginated: false
}
}
],
type: {
NotNull: {
Named: "String"
}
},
arguments: [
{
name: "active",
type: {
NotNull: {
Named: "Boolean"
}
}
},
{
name: "username",
type: {
NotNull: {
Named: "String"
}
}
},
{
name: "password",
type: {
NotNull: {
Named: "String"
}
}
},
{
name: "ethaddress",
type: {
NotNull: {
Named: "String"
}
}
},
{
name: "description",
type: {
Named: "String"
}
},
{
name: "email",
type: {
Named: "String"
}
},
{
name: "mobile",
type: {
Named: "String"
}
}
]
}
}
}
},
body: Query(
Lambda(
"_",
Abort(
"Function create_andor_login_user was not implemented yet. Please access your database and provide an implementation for the create_andor_login_user function."
)
)
)
}
]
}
>> Time elapsed: 48ms
The Schema:
type User
{
active : Boolean!
username : String! @unique
password : String! @unique
ethaddress : String! @unique
description : String
email : String @unique
mobile : String @unique
member_since: Int!
}
type Player
{ address : String! @unique
rank : Int!
challengeraddress : String
}
type Ranking
{
active : Boolean!
rankingname : String! @unique
rankingdesc : String
rankingowneraddr : String! @unique
}
type UserJoinedRanking
{
active : Boolean!
rankingid : String!
rankingname : String!
useraddr : String!
rankingowneraddr : String!
}
type Mutation {
createAndOrLoginUser(active: Boolean!, username: String!, password: String!, ethaddress: String!, description: String, email: String, mobile: String): String! @resolver(name: "create_andor_login_user")
createNewPlayer(active: Boolean!, address: String!, rank: Int!, challengeraddress: String): Player! @resolver(name: "create_new_player")
createNewRanking(active: Boolean!, rankingname : String!, rankingdesc : String, rankingowneraddr : String!): Ranking! @resolver(name: "create_new_ranking")
createNewUserJoinedRanking(active: Boolean!, rankingid : String!, rankingname : String!, useraddr: String!, rankingowneraddr : String!): UserJoinedRanking! @resolver(name: "create_new_userjoinedranking")
}
type Query {
allUserNames: [String!]! @resolver(name: "all_user_names")
allPlayerAddresses: [String!]! @resolver(name: "all_player_addresses")
allPlayerRanks: [Int!]! @resolver(name: "all_player_ranks")
allPlayerChallengerAddresses: [String!]! @resolver(name: "all_player_challenger_addresses")
allPlayers: [Player] @resolver(name: "all_players")
allRankings: [Ranking] @resolver(name: "all_rankings")
allUserJoinedRanking: [UserJoinedRanking] @resolver(name: "all_userjoinedranking")
allUsers: [User] @resolver(name: "all_users")
usernameFromEthaddress: [String!]!
}
What changes do I need to make to my configurations (schema or otherwise) to enable regular schema updates (parent and child dbs) without further complications (if possible), to avoid this error? thanks …