query schema to get attr name and attr type, no hard code