\billing\billing\test.md \billing\billing\test.md https://bot1e0.file.core.windows.net/billing/billing https://bot1e0.file.core.windows.net/billing/billing
-- https://1foreverhd.github.io/ZonePlus/ | |
-- Assuming we place ZonePlus in ReplicatedStorage | |
local Zone = require(game:GetService("ReplicatedStorage").Zone) | |
local container = workspace.SafeZoneContainer | |
local zone = Zone.new(container) | |
zone.playerEntered:Connect(function(player) | |
print(("%s entered the zone!"):format(player.Name)) |
// All of the Node.js APIs are available in the preload process. | |
// It has the same sandbox as a Chrome extension. | |
// The process.versions property returns an object listing the version | |
// strings of Node.js and its dependencies. process.versions.modules | |
// indicates the current ABI version, which is increased whenever a | |
// C++ API changes. Node.js will refuse to load modules that were compiled | |
// against a different module ABI version. | |
const { versions } = require('process') |
var express = require('express'); | |
var app = express(); | |
var woodlot = require('woodlot').middlewareLogger; | |
app.use(woodlot({ | |
streams: ['./logs/app.log'], | |
stdout: false, | |
routes: { | |
whitelist: ['/api', '/dashboard'], | |
strictChecking: false |
GraphQL.js is a general-purpose library and can be used both in a Node server and in the browser. As an example, the GraphiQL tool is built with GraphQL.js!
Building a project using GraphQL.js with webpack or rollup should just work and only include the portions of the library you use. This works because GraphQL.js is distributed with both CommonJS (require()) and ESModule (import) files. Ensure that any custom build configurations look for .mjs files!
// https://graphql.org/graphql-js/express-graphql/#graphqlhttp | |
// import { graphqlHTTP } from 'express-graphql'; // ES6 | |
var { graphqlHTTP } = require('express-graphql'); // CommonJS | |
graphqlHTTP({ | |
schema: GraphQLSchema, | |
graphiql?: ?boolean, | |
rootValue?: ?any, | |
context?: ?any, |
Just like a REST API, it's common to pass arguments to an endpoint in a GraphQL API. By defining the arguments in the schema language, typechecking happens automatically. Each argument must be named and have a type. For example, in the Basic Types documentation we had an endpoint called rollThreeDice: