Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit b1e417f

Browse files
committed
Fixed two error messages.
1 parent 93682c1 commit b1e417f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graphql/impl.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ end
7373
--- @treturn table result of the operation
7474
local function compile_and_execute(state, query, variables, operation_name,
7575
opts)
76-
assert(type(state) == 'table', 'use :gql_execute(...) instead of ' ..
77-
'.execute(...)')
76+
assert(type(state) == 'table', 'use :compile_and_execute(...) ' ..
77+
'instead of .compile_and_execute(...)')
7878
assert(state.schema ~= nil, 'have not compiled schema')
7979
check(query, 'query', 'string')
8080
check(variables, 'variables', 'table', 'nil')
@@ -103,7 +103,7 @@ end
103103
--- @treturn table compiled query with `execute` and `avro_schema` functions
104104
local function gql_compile(state, query, opts)
105105
assert(type(state) == 'table' and type(query) == 'string',
106-
'use :validate(...) instead of .validate(...)')
106+
'use :gql_compile(...) instead of .gql_compile(...)')
107107
assert(state.schema ~= nil, 'have not compiled schema')
108108
check(query, 'query', 'string')
109109
check(opts, 'opts', 'table', 'nil')

0 commit comments

Comments
 (0)