Max Klammer
03/07/2019, 6:58 PMcfree
03/07/2019, 7:03 PMNishant
03/07/2019, 8:04 PMjangerhofer
03/07/2019, 8:57 PMdebug in the Client constructor, per: https://www.prisma.io/docs/prisma-client/setup/constructor-JAVASCRIPT-rsc4/Meow
03/07/2019, 10:34 PMCristian
03/08/2019, 2:53 AMSiddhant
03/08/2019, 4:09 AMCarl Foster
03/08/2019, 4:57 AMCihad Turhan
03/08/2019, 7:59 AMsum aggregation which makes impossible to generate a leaderboard.Chris Fuller
03/08/2019, 11:27 AMimport { makeSchema } from 'nexus';
import * as allTypes from './typeDefs';
import { graphql } from 'graphql';
export const schema = makeSchema({
types: allTypes,
});
const query = `{ __schema { types { name } } }`;
graphql(schema, query).then(response => {
console.log(util.inspect(response, { showHidden: false, depth: null }));
});
Thanks in advance 🙂hadi
03/08/2019, 2:12 PMabdullah almesbahi
03/08/2019, 2:27 PMam_user (
user_id int(10) unsigned NOT NULL AUTO_INCREMENT,
login varchar(64) NOT NULL,
pass varchar(64) DEFAULT NULL,
remember_key varchar(40) DEFAULT NULL,
pass_dattm datetime DEFAULT NULL,
email varchar(64) DEFAULT NULL,
name_f varchar(64) NOT NULL,
name_l varchar(64) NOT NULL,
street varchar(255) DEFAULT NULL,
street2 varchar(255) DEFAULT NULL,
city varchar(255) DEFAULT NULL,
state varchar(255) DEFAULT NULL,
zip varchar(255) DEFAULT NULL,
country varchar(255) DEFAULT NULL,
phone varchar(255) DEFAULT NULL,
added datetime DEFAULT NULL,
remote_addr varchar(39) DEFAULT NULL,
user_agent varchar(255) DEFAULT NULL,
saved_form_id int(10) unsigned DEFAULT NULL,
status smallint(6) NOT NULL DEFAULT '0',
unsubscribed tinyint(4) NOT NULL DEFAULT '0',
lang varchar(32) DEFAULT NULL,
i_agree tinyint(4) DEFAULT '0',
is_approved tinyint(4) DEFAULT '1',
is_locked tinyint(4) DEFAULT '0',
disable_lock_until datetime DEFAULT NULL,
reseller_id int(11) DEFAULT NULL,
comment text,
tax_id varchar(255) DEFAULT NULL,
last_login datetime DEFAULT NULL,
last_ip varchar(39) DEFAULT NULL,
last_user_agent varchar(255) DEFAULT NULL,
last_session varchar(32) DEFAULT NULL,
aff_id int(10) unsigned DEFAULT NULL,
aff_added datetime DEFAULT NULL,
is_affiliate tinyint(4) DEFAULT NULL,
aff_payout_type varchar(32) DEFAULT NULL,
PRIMARY KEY (user_id),
UNIQUE KEY login (login),
KEY email (email),
KEY country (`country`(3)),
KEY state (`state`(191))
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4;
is there any solution to auto generate datamodel.graphql from existing mysql ?
it going to save me a lot of time
I also see prisma using CamelCase for table name and fields
is possible to re-map fields and table in datamodel.graphql without changing it in mysql?
like table am_user to User and field user_id to idJorge
03/08/2019, 4:45 PMRobert
03/08/2019, 4:55 PMStephen Jensen
03/08/2019, 5:41 PMJosé Gomes
03/08/2019, 6:02 PMlawjolla
03/08/2019, 7:14 PMprisma-nexus, how do you expose enums?Lee Nathan
03/08/2019, 11:15 PMjblevins
03/09/2019, 1:53 AMjblevins
03/09/2019, 4:17 AMjblevins
03/09/2019, 5:30 AMJorge
03/09/2019, 6:40 AMJorge
03/09/2019, 6:40 AMrein
03/09/2019, 10:47 AMprisma init ?rein
03/09/2019, 10:48 AMmedelman
03/09/2019, 1:54 PMprisma-prod--i.e., clustered prisma--docs ran off to?Seppe Snoeck
03/09/2019, 1:57 PMconst user = context.prisma.createUser({
email: args.email,
firstName: args.firstName,
lastName: args.lastName,
password,
profile: {
create: {
userName: args.userName
},
connect: {
userName: args.userName
}
},
})Wendell Misiedjan
03/09/2019, 6:37 PMSteve Mason
03/09/2019, 7:54 PMjblevins
03/09/2019, 8:21 PM